From dee5e04dfc56ec96033d86ee3923adf0a9c966a1 Mon Sep 17 00:00:00 2001 From: Patryk Mazur Date: Wed, 22 Apr 2026 19:37:27 +0200 Subject: [PATCH] Rotation and hashing V1.0.1 --- bot/utils/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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',