1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-09 11:42:16 +00:00

merge identical genre tags in album info

This commit is contained in:
Dave Holland 2021-09-13 14:00:48 +01:00
parent e6e20d1669
commit a1eeeb8ba9

View File

@ -240,7 +240,7 @@ class Album(db.Entity):
if count(self.tracks.year) > 0:
info["year"] = min(self.tracks.year)
genre = ", ".join(self.tracks.genre)
genre = ", ".join(list(set(self.tracks.genre)))
if genre:
info["genre"] = genre