From 38f3b1da1df8862c9bfecda63060369ba25b240c Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Thu, 11 Apr 2024 14:06:22 +0200 Subject: [PATCH] feat: updating tracksort before downloading --- .vscode/settings.json | 3 ++- music_kraken/pages/abstract.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 675fd7d..75710b5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -21,6 +21,7 @@ "dotenv", "levenshtein", "OKBLUE", - "Referer" + "Referer", + "tracksort" ] } \ No newline at end of file diff --git a/music_kraken/pages/abstract.py b/music_kraken/pages/abstract.py index 818e989..09b07b9 100644 --- a/music_kraken/pages/abstract.py +++ b/music_kraken/pages/abstract.py @@ -378,8 +378,9 @@ class Page: if not (isinstance(music_object, Song) and self.NO_ADDITIONAL_DATA_FROM_SONG): self.fetch_details(music_object=music_object, stop_at_level=1) - if isinstance(music_object, Song): - trace(music_object.option_string) + if isinstance(music_object, Album): + music_object.update_tracksort() + naming_dict.add_object(music_object)