mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-09 11:42:16 +00:00
Slightly improved genre merging
This commit is contained in:
parent
8652c47ec3
commit
e8d3f164b0
@ -240,7 +240,7 @@ class Album(db.Entity):
|
||||
if count(self.tracks.year) > 0:
|
||||
info["year"] = min(self.tracks.year)
|
||||
|
||||
genre = ", ".join(list(set(self.tracks.genre)))
|
||||
genre = ", ".join(self.tracks.genre.distinct())
|
||||
if genre:
|
||||
info["genre"] = genre
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user