Rotation and hashing V1.0.1
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user