use youtube-dl

This commit is contained in:
levina 2022-01-31 17:04:26 +07:00 committed by GitHub
parent d412688c0b
commit 4e473a0841
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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