use youtube-dl
This commit is contained in:
parent
d412688c0b
commit
4e473a0841
@ -41,7 +41,7 @@ def ytsearch(query: str):
|
||||
|
||||
|
||||
async def ytdl(format: str, link: str):
|
||||
stdout, stderr = await bash(f'yt-dlp -g -f "{format}" {link}')
|
||||
stdout, stderr = await bash(f'youtube-dl -g -f "{format}" {link}')
|
||||
if stdout:
|
||||
return 1, stdout.split("\n")[0]
|
||||
return 0, stderr
|
||||
|
Loading…
Reference in New Issue
Block a user