mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +01:00
fix yt-dl-beta
This commit is contained in:
parent
e6e6d35ed6
commit
d115f1957f
1 changed files with 0 additions and 7 deletions
|
@ -1001,13 +1001,6 @@ class OtherCog(commands.Cog):
|
||||||
]
|
]
|
||||||
args["format"] = args["format"] or f"(ba/b)[filesize<={MAX_SIZE_MB}M]"
|
args["format"] = args["format"] or f"(ba/b)[filesize<={MAX_SIZE_MB}M]"
|
||||||
|
|
||||||
try:
|
|
||||||
url = urlparse(url)
|
|
||||||
if url.netloc in ("www.instagram.com", "instagram.com"):
|
|
||||||
args["cookiesfrombrowser"] = ("firefox", "default")
|
|
||||||
except ValueError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
if args["format"] is None:
|
if args["format"] is None:
|
||||||
args["format"] = f"(bv*+ba/bv/ba/b)[filesize<={MAX_SIZE_MB}M]"
|
args["format"] = f"(bv*+ba/bv/ba/b)[filesize<={MAX_SIZE_MB}M]"
|
||||||
with yt_dlp.YoutubeDL(args) as downloader:
|
with yt_dlp.YoutubeDL(args) as downloader:
|
||||||
|
|
Loading…
Reference in a new issue