mirror of
https://github.com/sanderfoobar/ircradio.git
synced 2024-11-22 03:49:27 +01:00
fix yt-dlp
This commit is contained in:
parent
5d8caf4d24
commit
0bf9a07cf0
@ -44,7 +44,7 @@ class YouTube:
|
||||
"--max-filesize", "30M",
|
||||
"--extract-audio",
|
||||
"--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}"],
|
||||
stdout=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}")
|
||||
|
||||
return {
|
||||
"name": f"{artist} - {title}",
|
||||
"name": f"{title}",
|
||||
"data": metadata,
|
||||
"duration": duration,
|
||||
"path": filepath
|
||||
|
Loading…
Reference in New Issue
Block a user