From a3be0a933ea1fbcfd389fcc53282678c0a0f89ad Mon Sep 17 00:00:00 2001 From: KSKOP69 <123794242+KSKOP69@users.noreply.github.com> Date: Sun, 3 Nov 2024 09:46:19 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AlexaMusic/platforms/Youtube.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AlexaMusic/platforms/Youtube.py b/AlexaMusic/platforms/Youtube.py index df8c2e92..3b06d8d9 100644 --- a/AlexaMusic/platforms/Youtube.py +++ b/AlexaMusic/platforms/Youtube.py @@ -229,6 +229,7 @@ async def track(self, link: str, videoid: Union[bool, str] = None): "vidid": vidid, "duration_min": duration_min, "thumb": thumbnail, + "cookiefile": cookiefile(), } return track_details, vidid @@ -264,6 +265,7 @@ async def formats(self, link: str, videoid: Union[bool, str] = None): "ext": format["ext"], "format_note": format["format_note"], "yturl": link, + "cookiefile": cookiefile() } ) return formats_available, link @@ -322,7 +324,7 @@ def audio_dl(): def video_dl(): ydl_optssx = { "cookiefile": cookiefile(), - "format": "(bestvideo[height<=?720][width<=?1280][ext=mp4])+(bestaudio[ext=m4a])", + "format": "(best[height<=?720][width<=?1280])", "outtmpl": "downloads/%(id)s.%(ext)s", "geo_bypass": True, "nocheckcertificate": True,