mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
fix artist color mapping
This commit is contained in:
+5
-5
@@ -84,7 +84,11 @@ class ProcessAlbumColors:
|
||||
# INFO: Write to the database.
|
||||
if albumrecord is None:
|
||||
LibDataTable.insert_one(
|
||||
{"itemhash": albumhash, "color": colors[0], "itemtype": "album"}
|
||||
{
|
||||
"itemhash": "album" + albumhash,
|
||||
"color": colors[0],
|
||||
"itemtype": "album",
|
||||
}
|
||||
)
|
||||
else:
|
||||
LibDataTable.update_one(albumhash, {"color": colors[0]})
|
||||
@@ -109,7 +113,6 @@ class ProcessArtistColors:
|
||||
)
|
||||
|
||||
record = LibDataTable.find_one(artisthash, "artist")
|
||||
|
||||
if (record is not None) and (record.color is not None):
|
||||
continue
|
||||
|
||||
@@ -123,9 +126,6 @@ class ProcessArtistColors:
|
||||
if artist:
|
||||
artist.set_color(colors[0])
|
||||
|
||||
# INFO: Write to the database.
|
||||
print("RECORD")
|
||||
print(record)
|
||||
if record is None:
|
||||
LibDataTable.insert_one(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user