mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
show artist decade in genres
+ assign default artist separators if db is empty + add instrumental to album version + check if album is a single by checking og_title and current title + hard code juice wrld artist name in model + set album aritst to first artist if track has no album artist + rewrite get_base_album_title regex to use existing album versions + misc
This commit is contained in:
+10
-6
@@ -64,6 +64,16 @@ class Track:
|
||||
[a for a in featured if create_hash(a) not in original_lower]
|
||||
)
|
||||
|
||||
self.artist_hashes = "-".join(create_hash(a, decode=True) for a in artists)
|
||||
self.artists = [ArtistMinimal(a) for a in artists]
|
||||
|
||||
albumartists = split_artists(self.albumartists)
|
||||
|
||||
if not albumartists:
|
||||
self.albumartists = self.artists[:1]
|
||||
else:
|
||||
self.albumartists = [ArtistMinimal(a) for a in albumartists]
|
||||
|
||||
if get_flag(SessionVarKeys.REMOVE_PROD):
|
||||
new_title = remove_prod(new_title)
|
||||
|
||||
@@ -84,12 +94,6 @@ class Track:
|
||||
if get_flag(SessionVarKeys.MERGE_ALBUM_VERSIONS):
|
||||
self.recreate_albumhash()
|
||||
|
||||
self.artist_hashes = "-".join(create_hash(a, decode=True) for a in artists)
|
||||
self.artists = [ArtistMinimal(a) for a in artists]
|
||||
|
||||
albumartists = split_artists(self.albumartists)
|
||||
self.albumartists = [ArtistMinimal(a) for a in albumartists]
|
||||
|
||||
self.image = self.albumhash + ".webp"
|
||||
|
||||
if self.genre is not None and self.genre != "":
|
||||
|
||||
Reference in New Issue
Block a user