commit
1cea4804c2
@ -35,9 +35,11 @@ async def song_downloader(_, message):
|
|||||||
m = await message.reply("🔎 finding song...")
|
m = await message.reply("🔎 finding song...")
|
||||||
ydl_ops = {
|
ydl_ops = {
|
||||||
'format': 'bestaudio[ext=m4a]',
|
'format': 'bestaudio[ext=m4a]',
|
||||||
'keepvideo': True,
|
'geo-bypass': True,
|
||||||
'prefer_ffmpeg': False,
|
'noprogress': True,
|
||||||
'geo_bypass': True,
|
'user-agent': 'Mozilla/5.0 (Linux; Android 7.0; k960n_mt6580_32_n) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36',
|
||||||
|
'extractor-args': 'youtube:player_client=all',
|
||||||
|
'nocheckcertificate': True,
|
||||||
'outtmpl': '%(title)s.%(ext)s',
|
'outtmpl': '%(title)s.%(ext)s',
|
||||||
'quite': True,
|
'quite': True,
|
||||||
}
|
}
|
||||||
@ -98,8 +100,12 @@ async def video_downloader(_, message):
|
|||||||
ydl_opts = {
|
ydl_opts = {
|
||||||
"format": "best",
|
"format": "best",
|
||||||
"keepvideo": True,
|
"keepvideo": True,
|
||||||
"prefer_ffmpeg": False,
|
"prefer-ffmpeg": False,
|
||||||
"geo_bypass": True,
|
"geo-bypass": True,
|
||||||
|
"noprogress": True,
|
||||||
|
"user-agent": "Mozilla/5.0 (Linux; Android 7.0; k960n_mt6580_32_n) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36",
|
||||||
|
"extractor-args": "youtube:player_client=all",
|
||||||
|
"nocheckcertificate": True,
|
||||||
"outtmpl": "%(title)s.%(ext)s",
|
"outtmpl": "%(title)s.%(ext)s",
|
||||||
"quite": True,
|
"quite": True,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user