fix: setting the genre of the song
This commit is contained in:
parent
bab6aeb45d
commit
1bf04439f0
@ -236,7 +236,6 @@ class Pages:
|
||||
# manage the naming
|
||||
naming: Dict[str, List[str]] = defaultdict(list, naming)
|
||||
naming["song"].append(song.title_string)
|
||||
naming["genre"].append(song.genre)
|
||||
naming["isrc"].append(song.isrc)
|
||||
naming["album"].extend(a.title_string for a in song.album_collection)
|
||||
naming["album_type"].extend(a.album_type.value for a in song.album_collection)
|
||||
@ -248,6 +247,7 @@ class Pages:
|
||||
for key, value in naming.items():
|
||||
# https://stackoverflow.com/a/17016257
|
||||
naming[key] = list(dict.fromkeys(value))
|
||||
song.genre = naming["genre"][0]
|
||||
|
||||
# manage the targets
|
||||
tmp: Target = Target.temp(file_extension=main_settings["audio_format"])
|
||||
|
Loading…
Reference in New Issue
Block a user