diff --git a/bot/utils/helpers.py b/bot/utils/helpers.py index 6de68c2..67e1ff6 100644 --- a/bot/utils/helpers.py +++ b/bot/utils/helpers.py @@ -39,7 +39,8 @@ def download_video(yt_url: str) -> dict: 'message': f'Wideo jest za długie ({duration // 60}m {duration % 60}s). Maksymalnie 10 minut.' } - url_hash = hashlib.md5(yt_url.encode()).hexdigest()[:10] + rotate_downloads(DOWNLOADS) + url_hash = hashlib.sha1(yt_url.encode()).hexdigest()[:10] ydl_opts = { 'format': 'bestvideo+bestaudio/best',