mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
809415ddb4
+ add artists you might like
27 lines
668 B
Python
27 lines
668 B
Python
from app.crons.cron import CronJob
|
|
from app.lib.recipes.artistmixes import ArtistMixes
|
|
from app.lib.recipes.because import BecauseYouListened
|
|
|
|
|
|
class Mixes(CronJob):
|
|
"""
|
|
This cron job creates mixes displayed on the homepage.
|
|
"""
|
|
|
|
name: str = "mixes"
|
|
hours: int = 6
|
|
|
|
def __init__(self):
|
|
super().__init__()
|
|
|
|
def run(self):
|
|
"""
|
|
Creates the artist mixes
|
|
"""
|
|
print("⭐⭐⭐⭐ Mixes cron job running")
|
|
ArtistMixes()
|
|
|
|
# INFO: Because you listened to artist items are generated using
|
|
# the artist mixes, so run them after the artist mixes are created.
|
|
BecauseYouListened()
|