From 1bf04439f050fce39c2aae0b9a5b12b00657abfd Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Wed, 15 May 2024 14:51:30 +0200 Subject: [PATCH] fix: setting the genre of the song --- music_kraken/download/page_attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_kraken/download/page_attributes.py b/music_kraken/download/page_attributes.py index cd047f0..3bd14f2 100644 --- a/music_kraken/download/page_attributes.py +++ b/music_kraken/download/page_attributes.py @@ -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"])