Properly implement sleep for manifest

This commit is contained in:
blank X 2021-04-10 12:50:29 +07:00
parent c222f91ef9
commit 5488fb457c
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ async def _video_worker():
is_manifest = True
break
if is_manifest:
wait_time += video_json['duration']
await asyncio.sleep(video_json['duration'])
try:
await client.send_message(config['config']['storage_chat_id'], f'Failed to download video {video_json["id"]}, please check logs', parse_mode=None)
except BaseException: