Update music.py

Fix
This commit is contained in:
The Guy 2021-12-17 00:09:31 +05:30 committed by GitHub
parent 01d9cb1167
commit 06d6775eb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ def ytsearch(query: str):
async def ytdl(format: str, link: 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: if stdout:
return 1, stdout.split("\n")[0] return 1, stdout.split("\n")[0]
return 0, stderr return 0, stderr