mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 14:04:42 +00:00
prevent artist mix duplicates
This commit is contained in:
1 parent
2ee501cc64
commit
f512b65312
1 file changed
+7
-1
@@ -138,7 +138,13 @@ class MixesPlugin(Plugin):
|
||||
if previous_period["created"] < previous_period["max"]:
|
||||
limit += previous_period["max"] - previous_period["created"]
|
||||
|
||||
for artist in period["artists"][:limit]:
|
||||
for artist in period["artists"]:
|
||||
if period["created"] >= limit:
|
||||
break
|
||||
|
||||
if artist["artisthash"] in indexed:
|
||||
continue
|
||||
|
||||
mix = self.create_artist_mix(artist)
|
||||
|
||||
if mix:
|
||||
|
||||
Reference in new issue
Block a user