From 6226ae4a139169da33d2cfcfb468b004148f820c Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Fri, 26 Apr 2024 14:34:22 +0200 Subject: [PATCH] feat: improved trace --- music_kraken/pages/abstract.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/music_kraken/pages/abstract.py b/music_kraken/pages/abstract.py index 28bea17..468067b 100644 --- a/music_kraken/pages/abstract.py +++ b/music_kraken/pages/abstract.py @@ -256,7 +256,7 @@ class Page: stop_at_level=stop_at_level, post_process=False, type_string=type(music_object).__name__, - title_string=music_object.title_string, + entity_string=music_object.option_string, ) if new_music_object is None: @@ -278,7 +278,7 @@ class Page: enforce_type: Type[DatabaseObject] = None, post_process: bool = True, type_string: str = "", - title_string: str = "", + entity_string: str = "", ) -> Optional[DatabaseObject]: obj_type = self.get_source_type(source) @@ -306,7 +306,7 @@ class Page: return None if stop_at_level > 0: - trace(f"fetching {type_string} [{title_string}] [stop_at_level={stop_at_level}]") + trace(f"fetching {type_string} [{entity_string}] [stop_at_level={stop_at_level}]") collection: Collection for collection_str in music_object.DOWNWARDS_COLLECTION_STRING_ATTRIBUTES: @@ -364,7 +364,7 @@ class Page: skip_details: bool = False, process_metadata_anyway: bool = True ) -> DownloadResult: - trace(f"downloading {type(music_object).__name__} [{music_object.title_string}]") + trace(f"downloading {type(music_object).__name__} [{music_object.option_string}]") skip_next_details = skip_details # Skips all releases, that are defined in shared.ALBUM_TYPE_BLACKLIST, if download_all is False