From 1e70b240f38a87ef5eba44a79bac9e1620e46168 Mon Sep 17 00:00:00 2001 From: scoobybejesus Date: Wed, 18 Oct 2023 16:31:42 -0400 Subject: [PATCH] Add rudimentary error handling of title --- ircradio/youtube.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ircradio/youtube.py b/ircradio/youtube.py index b7bedde..cccee4f 100644 --- a/ircradio/youtube.py +++ b/ircradio/youtube.py @@ -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,