mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 05:59:28 +02:00
Resolve "Tagging artists/albums genres when importing music files"
This commit is contained in:
parent
7b0db234e2
commit
aea8e4fc59
12 changed files with 333 additions and 0 deletions
|
@ -599,6 +599,20 @@ CELERY_BEAT_SCHEDULE = {
|
|||
},
|
||||
}
|
||||
|
||||
if env.bool("ADD_ALBUM_TAGS_FROM_TRACKS", default=True):
|
||||
CELERY_BEAT_SCHEDULE["music.albums_set_tags_from_tracks"] = {
|
||||
"task": "music.albums_set_tags_from_tracks",
|
||||
"schedule": crontab(minute="0", hour="4", day_of_week="4"),
|
||||
"options": {"expires": 60 * 60 * 2},
|
||||
}
|
||||
|
||||
if env.bool("ADD_ARTIST_TAGS_FROM_TRACKS", default=True):
|
||||
CELERY_BEAT_SCHEDULE["music.artists_set_tags_from_tracks"] = {
|
||||
"task": "music.artists_set_tags_from_tracks",
|
||||
"schedule": crontab(minute="0", hour="4", day_of_week="4"),
|
||||
"options": {"expires": 60 * 60 * 2},
|
||||
}
|
||||
|
||||
NODEINFO_REFRESH_DELAY = env.int("NODEINFO_REFRESH_DELAY", default=3600 * 24)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue