From 21160e17c55953a3d161850782e445edc1f908b2 Mon Sep 17 00:00:00 2001 From: dsc Date: Mon, 28 Feb 2022 19:03:27 +0200 Subject: [PATCH] switch from youtube-dl to yt-dlp --- ircradio/youtube.py | 4 ++-- requirements.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ircradio/youtube.py b/ircradio/youtube.py index 77f4b6a..be1e2e5 100644 --- a/ircradio/youtube.py +++ b/ircradio/youtube.py @@ -36,7 +36,7 @@ class YouTube: try: proc = await asyncio.create_subprocess_exec( - *["youtube-dl", + *["yt-dlp", "--add-metadata", "--write-all-thumbnails", "--write-info-json", @@ -132,7 +132,7 @@ class YouTube: async def update(): pip_path = os.path.join(os.path.dirname(sys.executable), "pip") proc = await asyncio.create_subprocess_exec( - *[sys.executable, pip_path, "install", "--upgrade", "youtube-dl"], + *[sys.executable, pip_path, "install", "--upgrade", "yt-dlp"], stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE) stdout, stderr = await proc.communicate() diff --git a/requirements.txt b/requirements.txt index 1b39095..09ffd92 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ quart -youtube-dl +yt-dlp aiofiles aiohttp bottom @@ -7,4 +7,4 @@ tinytag peewee python-dateutil mutagen -peewee \ No newline at end of file +peewee