Merge pull request #4 from tomyangsh/fix-pornhub

This commit is contained in:
Benny 2021-05-06 08:20:34 +08:00 committed by GitHub
commit 910bc46238
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: