1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-22 08:56:17 +00:00

Slightly improved genre merging

This commit is contained in:
Alban Féron 2021-09-18 17:07:53 +02:00
parent 8652c47ec3
commit e8d3f164b0
No known key found for this signature in database
GPG Key ID: 8CE0313646D16165

View File

@ -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