mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
check if album colors have contrast
- remove albumid field from album class - set accent color to $red
This commit is contained in:
committed by
Mungai Geoffrey
parent
a23b6200eb
commit
5acb8cb84d
@@ -82,7 +82,6 @@ class Album:
|
||||
Creates an album object
|
||||
"""
|
||||
|
||||
albumid: str
|
||||
title: str
|
||||
artist: str
|
||||
hash: str
|
||||
@@ -96,7 +95,6 @@ class Album:
|
||||
colors: List[str] = field(default_factory=list)
|
||||
|
||||
def __init__(self, tags):
|
||||
self.albumid = tags["_id"]["$oid"]
|
||||
self.title = tags["title"]
|
||||
self.artist = tags["artist"]
|
||||
self.date = tags["date"]
|
||||
|
||||
Reference in New Issue
Block a user