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

Fix title assignment.

parent f915b231
No related branches found
No related tags found
No related merge requests found
...@@ -310,11 +310,11 @@ class AuraCalendarService(threading.Thread): ...@@ -310,11 +310,11 @@ class AuraCalendarService(threading.Thread):
if "album" in metadata: if "album" in metadata:
metadata_db.album = metadata["album"] 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) 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: else:
metadata_db.artist = metadata["artist"] metadata_db.artist = metadata["title"]
metadata_db.store(havetoadd, commit=True) metadata_db.store(havetoadd, commit=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment