Rotation and hashing V1.0.1

This commit is contained in:
Patryk Mazur
2026-04-22 19:37:27 +02:00
parent 1514ce1dc6
commit dee5e04dfc
+2 -1
View File
@@ -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.' '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 = { ydl_opts = {
'format': 'bestvideo+bestaudio/best', 'format': 'bestvideo+bestaudio/best',