From 088e56ba37a0364fed4ff70cbc52c4a459f8d1f8 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 31 Jan 2022 20:39:24 +0700 Subject: [PATCH 1/2] use yt-dlp instead of youtube-dl youtube-dl have an common issues that can't find format of video that we're requested --- program/music.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/music.py b/program/music.py index cf24bb1..9c6942e 100644 --- a/program/music.py +++ b/program/music.py @@ -40,7 +40,7 @@ def ytsearch(query: str): async def ytdl(link: str): stdout, stderr = await bash( - f'youtube-dl -g -f "best[height<=?720][width<=?1280]" {link}' + f'yt-dlp -g -f "best[height<=?720][width<=?1280]" {link}' ) if stdout: return 1, stdout From 214aa8355aa53aaf2c45fbe5965e0e4eeaa76355 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Mon, 31 Jan 2022 20:49:15 +0700 Subject: [PATCH 2/2] remove youtube-dl --- requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index dd3760d..12d44aa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,6 @@ ffmpeg-python py-tgcalls pyrogram youtube-search-python -git+https://github.com/ytdl-org/youtube-dl@master yt-dlp lyricsgenius speedtest-cli