Properly implement sleep for manifest

master
blank X 1 year ago
parent c222f91ef9
commit 5488fb457c
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
  1. 2
      autoytarchive/workers.py

@ -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:

Loading…
Cancel
Save