From 542d59562a8c8bcf6c55920b8ecb1d1fc231c805 Mon Sep 17 00:00:00 2001 From: Hellow <74311245+HeIIow2@users.noreply.github.com> Date: Mon, 6 May 2024 18:35:25 +0200 Subject: [PATCH] fix: removed redundand code --- music_kraken/pages/musify.py | 7 ------- music_kraken/utils/shared.py | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/music_kraken/pages/musify.py b/music_kraken/pages/musify.py index 4646385..5f1b7aa 100644 --- a/music_kraken/pages/musify.py +++ b/music_kraken/pages/musify.py @@ -690,13 +690,6 @@ class Musify(Page): new_song = self._parse_song_card(card_soup) album.song_collection.append(new_song) - if stop_at_level > 1: - song: Song - for song in album.song_collection: - sources = song.source_collection.get_sources(self.SOURCE_TYPE) - for source in sources: - song.merge(self.fetch_song(source=source)) - album.update_tracksort() return album diff --git a/music_kraken/utils/shared.py b/music_kraken/utils/shared.py index 5a40396..b75cf7f 100644 --- a/music_kraken/utils/shared.py +++ b/music_kraken/utils/shared.py @@ -15,7 +15,7 @@ __stage__ = os.getenv("STAGE", "prod") DEBUG = (__stage__ == "dev") and True DEBUG_LOGGING = DEBUG and False DEBUG_TRACE = DEBUG and True -DEBUG_OBJECT_TRACE = DEBUG and True +DEBUG_OBJECT_TRACE = DEBUG and False DEBUG_OBJECT_TRACE_CALLSTACK = DEBUG_OBJECT_TRACE and False DEBUG_YOUTUBE_INITIALIZING = DEBUG and False DEBUG_PAGES = DEBUG and False