mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2025-02-25 07:44:13 +08:00
Merge pull request #4 from tomyangsh/fix-pornhub
This commit is contained in:
commit
910bc46238
1 changed files with 1 additions and 1 deletions
2
ytdl.py
2
ytdl.py
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue