fix pornhub

This commit is contained in:
Tom Yang 2021-05-05 15:02:20 -04:00
parent 7d8987de69
commit 1c62464076
No known key found for this signature in database
GPG Key ID: A220418830F62855

View File

@ -106,7 +106,7 @@ def ytdl_download(url, tempdir, chat_id, message) -> dict:
'progress_hooks': [lambda d: progress_hook(d, chat_id, message)],
'outtmpl': output,
'restrictfilenames': True,
'format': 'bestvideo[vcodec^=avc]+bestaudio[acodec^=mp4a]/best'
'format': 'bestvideo[vcodec^=avc]+bestaudio[acodec^=mp4a]/best[vcodec^=avc]/best'
}
try:
with youtube_dl.YoutubeDL(ydl_opts) as ydl: