mirror of
https://github.com/omg-xtao/ytdlbot.git
synced 2024-11-16 03:45:23 +00:00
fix pornhub
This commit is contained in:
parent
7d8987de69
commit
1c62464076
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 New Issue
Block a user