From 415210522ff5b8dafe1b230b5b607279b65c6a12 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Mon, 29 Apr 2024 17:27:12 +0200 Subject: [PATCH] fix: not directly adding all sources --- development/actual_donwload.py | 4 ++-- music_kraken/objects/source.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/development/actual_donwload.py b/development/actual_donwload.py index a8eb732..4788eb5 100644 --- a/development/actual_donwload.py +++ b/development/actual_donwload.py @@ -6,8 +6,8 @@ logging.getLogger().setLevel(logging.DEBUG) if __name__ == "__main__": commands = [ - "s: #a Crystal F", - "d: 20", + "s: #a Ghost Bath", + "d: 4", ] diff --git a/music_kraken/objects/source.py b/music_kraken/objects/source.py index 130cacd..8680cde 100644 --- a/music_kraken/objects/source.py +++ b/music_kraken/objects/source.py @@ -128,10 +128,11 @@ class SourceCollection: if existing_source is not None: existing_source.__merge__(source) source = existing_source + else: + self._page_to_source_list[source.page_enum].append(source) for key in source.indexing_values: self._indexed_sources[key] = source - self._page_to_source_list[source.page_enum].append(source) def extend(self, sources: Iterable[Source]): for source in sources: