mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
lastfm: dump failed scrobbles locally
+ bump tinytag to v2.0.0 and refactor taglib.py + add explicit flag to track model
This commit is contained in:
+8
-2
@@ -124,9 +124,15 @@ class ProcessArtistColors:
|
||||
artist.set_color(colors[0])
|
||||
|
||||
# INFO: Write to the database.
|
||||
print("RECORD")
|
||||
print(record)
|
||||
if record is None:
|
||||
LibDataTable.insert_one(
|
||||
{"itemhash": artisthash, "color": colors[0], "itemtype": "artist"}
|
||||
{
|
||||
"itemhash": "artist" + artisthash,
|
||||
"color": colors[0],
|
||||
"itemtype": "artist",
|
||||
}
|
||||
)
|
||||
else:
|
||||
LibDataTable.update_one(artisthash, {"color": colors[0]})
|
||||
LibDataTable.update_one("artist" + artisthash, {"color": colors[0]})
|
||||
|
||||
Reference in New Issue
Block a user