mirror of
https://github.com/sanderfoobar/ircradio.git
synced 2025-01-11 04:22:35 +01:00
Add rudimentary error handling of title
This commit is contained in:
parent
a4930649fc
commit
1e70b240f3
@ -121,6 +121,7 @@ class YouTube:
|
|||||||
title = 'Unknown'
|
title = 'Unknown'
|
||||||
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}")
|
||||||
|
|
||||||
|
title = title if '-' in title else f"{artist} - {title}"
|
||||||
return {
|
return {
|
||||||
"name": f"{title}",
|
"name": f"{title}",
|
||||||
"data": metadata,
|
"data": metadata,
|
||||||
|
Loading…
Reference in New Issue
Block a user