From 1c6246407614a84d311091ff7d1c80a4dd1db99a Mon Sep 17 00:00:00 2001 From: Tom Yang Date: Wed, 5 May 2021 15:02:20 -0400 Subject: [PATCH] fix pornhub --- ytdl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytdl.py b/ytdl.py index d4f71c2..e322068 100644 --- a/ytdl.py +++ b/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: