From cf0cc6b2b922ab5b55c67790b922a428d1528083 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Tue, 12 Sep 2023 10:58:44 +0200 Subject: [PATCH] fixed debug --- src/music_kraken/download/page_attributes.py | 5 ++++- src/music_kraken/utils/shared.py | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/music_kraken/download/page_attributes.py b/src/music_kraken/download/page_attributes.py index a0b5915..bd0a80c 100644 --- a/src/music_kraken/download/page_attributes.py +++ b/src/music_kraken/download/page_attributes.py @@ -6,10 +6,13 @@ from ..objects import DatabaseObject, Source from ..utils.enums.source import SourcePages from ..utils.support_classes import Query, DownloadResult from ..utils.exception.download import UrlNotFoundException +from ..utils.shared import DEBUG_PAGES from ..pages import Page, EncyclopaediaMetallum, Musify, YouTube, YoutubeMusic, INDEPENDENT_DB_OBJECTS -DEBUGGING_PAGE = YoutubeMusic +if DEBUG_PAGES: + DEBUGGING_PAGE = YoutubeMusic + ALL_PAGES: Set[Type[Page]] = { EncyclopaediaMetallum, diff --git a/src/music_kraken/utils/shared.py b/src/music_kraken/utils/shared.py index 1cda27a..20726f1 100644 --- a/src/music_kraken/utils/shared.py +++ b/src/music_kraken/utils/shared.py @@ -2,8 +2,10 @@ import random from .config import main_settings -DEBUG = True +DEBUG = False DEBUG_YOUTUBE_INITIALIZING = DEBUG and False +DEBUG_PAGES = DEBUG and False + if DEBUG: print("DEBUG ACTIVE")