Update music.py
Fix
This commit is contained in:
parent
01d9cb1167
commit
06d6775eb2
@ -33,7 +33,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