mirror of
https://github.com/sanderfoobar/ircradio.git
synced 2024-11-22 20:09:41 +01:00
fix yt-dlp
This commit is contained in:
parent
5d8caf4d24
commit
0bf9a07cf0
@ -44,7 +44,7 @@ class YouTube:
|
|||||||
"--max-filesize", "30M",
|
"--max-filesize", "30M",
|
||||||
"--extract-audio",
|
"--extract-audio",
|
||||||
"--audio-format", "vorbis",
|
"--audio-format", "vorbis",
|
||||||
"-o", f"{settings.dir_music}/%(id)s.ogg",
|
"-o", f"{settings.dir_music}/%(id)s",
|
||||||
f"https://www.youtube.com/watch?v={utube_id}"],
|
f"https://www.youtube.com/watch?v={utube_id}"],
|
||||||
stdout=asyncio.subprocess.PIPE,
|
stdout=asyncio.subprocess.PIPE,
|
||||||
stderr=asyncio.subprocess.PIPE)
|
stderr=asyncio.subprocess.PIPE)
|
||||||
@ -116,7 +116,7 @@ class YouTube:
|
|||||||
app.logger.warning(f"could not detect artist/title from metadata for {filepath}")
|
app.logger.warning(f"could not detect artist/title from metadata for {filepath}")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"name": f"{artist} - {title}",
|
"name": f"{title}",
|
||||||
"data": metadata,
|
"data": metadata,
|
||||||
"duration": duration,
|
"duration": duration,
|
||||||
"path": filepath
|
"path": filepath
|
||||||
|
Loading…
Reference in New Issue
Block a user