feat: updating tracksort before downloading

This commit is contained in:
Hazel 2024-04-11 14:06:22 +02:00
parent 25eacfbe6e
commit 38f3b1da1d
2 changed files with 5 additions and 3 deletions

View File

@ -21,6 +21,7 @@
"dotenv", "dotenv",
"levenshtein", "levenshtein",
"OKBLUE", "OKBLUE",
"Referer" "Referer",
"tracksort"
] ]
} }

View File

@ -378,8 +378,9 @@ class Page:
if not (isinstance(music_object, Song) and self.NO_ADDITIONAL_DATA_FROM_SONG): if not (isinstance(music_object, Song) and self.NO_ADDITIONAL_DATA_FROM_SONG):
self.fetch_details(music_object=music_object, stop_at_level=1) self.fetch_details(music_object=music_object, stop_at_level=1)
if isinstance(music_object, Song): if isinstance(music_object, Album):
trace(music_object.option_string) music_object.update_tracksort()
naming_dict.add_object(music_object) naming_dict.add_object(music_object)