supplement mixes using other remote similar albums and artist data

This commit is contained in:
cwilvx
2024-11-01 12:23:41 +03:00
parent eb4c65de83
commit 1fdd5ba4d1
8 changed files with 171 additions and 31 deletions
+7 -1
View File
@@ -7,6 +7,7 @@ class Mixes(CronJob):
"""
This cron job creates mixes displayed on the homepage.
"""
def __init__(self):
super().__init__("mixes", 5)
@@ -16,6 +17,11 @@ class Mixes(CronJob):
"""
print("⭐⭐⭐⭐ Mixes cron job running")
mixes = MixesPlugin()
if not mixes.enabled:
return
artist_mixes = mixes.create_artist_mixes()
HomepageStore.set_artist_mixes(artist_mixes)
if artist_mixes:
HomepageStore.set_artist_mixes(artist_mixes)