mirror of
https://git.wownero.com/dsc/ircradio.git
synced 2024-08-15 01:03:15 +00:00
fix yt-dlp
This commit is contained in:
parent
5d8caf4d24
commit
0bf9a07cf0
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue