Add rudimentary error handling of title

This commit is contained in:
scoobybejesus 2023-10-18 16:31:42 -04:00
parent a4930649fc
commit 1e70b240f3

View File

@ -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,