mirror of
https://github.com/sanderfoobar/ircradio.git
synced 2024-11-25 21:39:26 +01:00
Merge pull request 'Add rudimentary error handling of title' (#11) from scoobybejesus/ircradio:title into master
Reviewed-on: https://git.wownero.com/dsc/ircradio/pulls/11
This commit is contained in:
commit
2045da9778
@ -121,6 +121,7 @@ class YouTube:
|
||||
title = 'Unknown'
|
||||
app.logger.warning(f"could not detect artist/title from metadata for {filepath}")
|
||||
|
||||
title = title if '-' in title else f"{artist} - {title}"
|
||||
return {
|
||||
"name": f"{title}",
|
||||
"data": metadata,
|
||||
|
Loading…
Reference in New Issue
Block a user