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,