mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
prevent artist mix duplicates
This commit is contained in:
@@ -138,7 +138,13 @@ class MixesPlugin(Plugin):
|
|||||||
if previous_period["created"] < previous_period["max"]:
|
if previous_period["created"] < previous_period["max"]:
|
||||||
limit += previous_period["max"] - previous_period["created"]
|
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)
|
mix = self.create_artist_mix(artist)
|
||||||
|
|
||||||
if mix:
|
if mix:
|
||||||
|
|||||||
Reference in New Issue
Block a user