mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 10:29:28 +02:00
Allow genre tags to be updated when rescanning files in-place
This commit is contained in:
parent
968e66eb46
commit
4845325612
4 changed files with 8 additions and 0 deletions
|
@ -937,6 +937,8 @@ def update_track_metadata(audio_metadata, track):
|
|||
if obj_updated_fields:
|
||||
obj.save(update_fields=obj_updated_fields)
|
||||
|
||||
tags_models.set_tags(track, *new_data.get("tags", []))
|
||||
|
||||
if track.album and "album" in new_data and new_data["album"].get("cover_data"):
|
||||
common_utils.attach_file(
|
||||
track.album, "attachment_cover", new_data["album"].get("cover_data")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue