Skip to content
Snippets Groups Projects
Commit 337dda12 authored by David Trattnig's avatar David Trattnig
Browse files

Fix title assignment.

parent b39cb404
No related branches found
No related tags found
No related merge requests found
......@@ -310,11 +310,11 @@ class AuraCalendarService(threading.Thread):
if "album" in metadata:
metadata_db.album = metadata["album"]
if "artist" not in metadata:
if "title" not in metadata:
self.logger.warning("Title not found in metadata for track '%s'. Setting to 'n/a'" % entry_db.source)
metadata_db.artist = "n/a"
metadata_db.title = ""
else:
metadata_db.artist = metadata["artist"]
metadata_db.artist = metadata["title"]
metadata_db.store(havetoadd, commit=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment