mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-01-21 00:17:06 +01:00
add log about the last available version of clients
This commit is contained in:
parent
52870ffc6c
commit
5303f67744
1 changed files with 3 additions and 0 deletions
|
@ -104,9 +104,12 @@ async def get_download_link_of_latest_appcenter_release(parameterized_url: str,
|
|||
json = await make_req(f'{base_url}/public_releases')
|
||||
if json and json[0]:
|
||||
latest_id = json[0]['id']
|
||||
version = json[0]['version']
|
||||
else:
|
||||
return
|
||||
|
||||
logger.info(f'The latest appcenter release is {version} ({parameterized_url})')
|
||||
|
||||
json = await make_req(f'{base_url}/releases/{latest_id}')
|
||||
if json:
|
||||
return json['download_url']
|
||||
|
|
Loading…
Reference in a new issue