diff --git a/autoytarchive/workers.py b/autoytarchive/workers.py index eb892cd..c53ead2 100644 --- a/autoytarchive/workers.py +++ b/autoytarchive/workers.py @@ -2,6 +2,7 @@ import re import os import json import time +import random import asyncio import logging import tempfile @@ -55,6 +56,7 @@ async def _check_channels(nodl): continue asyncio.create_task(check_video(j)) tmp_handled.append(j['yt_videoid']) + await asyncio.sleep(random.randint(1, 10)) async def check_video(video): for _ in range(5):