mirror of
https://github.com/sanderfoobar/ircradio.git
synced 2025-02-16 13:31:02 +01:00
switch from youtube-dl to yt-dlp
This commit is contained in:
parent
fd824035b7
commit
21160e17c5
@ -36,7 +36,7 @@ class YouTube:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
proc = await asyncio.create_subprocess_exec(
|
proc = await asyncio.create_subprocess_exec(
|
||||||
*["youtube-dl",
|
*["yt-dlp",
|
||||||
"--add-metadata",
|
"--add-metadata",
|
||||||
"--write-all-thumbnails",
|
"--write-all-thumbnails",
|
||||||
"--write-info-json",
|
"--write-info-json",
|
||||||
@ -132,7 +132,7 @@ class YouTube:
|
|||||||
async def update():
|
async def update():
|
||||||
pip_path = os.path.join(os.path.dirname(sys.executable), "pip")
|
pip_path = os.path.join(os.path.dirname(sys.executable), "pip")
|
||||||
proc = await asyncio.create_subprocess_exec(
|
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,
|
stdout=asyncio.subprocess.PIPE,
|
||||||
stderr=asyncio.subprocess.PIPE)
|
stderr=asyncio.subprocess.PIPE)
|
||||||
stdout, stderr = await proc.communicate()
|
stdout, stderr = await proc.communicate()
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
quart
|
quart
|
||||||
youtube-dl
|
yt-dlp
|
||||||
aiofiles
|
aiofiles
|
||||||
aiohttp
|
aiohttp
|
||||||
bottom
|
bottom
|
||||||
@ -7,4 +7,4 @@ tinytag
|
|||||||
peewee
|
peewee
|
||||||
python-dateutil
|
python-dateutil
|
||||||
mutagen
|
mutagen
|
||||||
peewee
|
peewee
|
||||||
|
Loading…
x
Reference in New Issue
Block a user