From d98f72f8362c8bca664eecf2d4f6e769ae5f3d1a Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Tue, 12 Sep 2023 11:06:39 +0200 Subject: [PATCH] commented youtube --- src/music_kraken/download/page_attributes.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/music_kraken/download/page_attributes.py b/src/music_kraken/download/page_attributes.py index bd0a80c..c7456bc 100644 --- a/src/music_kraken/download/page_attributes.py +++ b/src/music_kraken/download/page_attributes.py @@ -12,12 +12,16 @@ from ..pages import Page, EncyclopaediaMetallum, Musify, YouTube, YoutubeMusic, if DEBUG_PAGES: DEBUGGING_PAGE = YoutubeMusic + print(f"Only downloading from page {DEBUGGING_PAGE}.") + + ALL_PAGES = {DEBUGGING_PAGE} + AUDIO_PAGES = ALL_PAGES.union(AUDIO_PAGES) ALL_PAGES: Set[Type[Page]] = { EncyclopaediaMetallum, Musify, - YouTube, + # YouTube, YoutubeMusic } @@ -31,12 +35,6 @@ SHADY_PAGES: Set[Type[Page]] = { Musify, } -if DEBUGGING_PAGE is not None: - print(f"The DEBUGGING_PAGE is not None, but {DEBUGGING_PAGE}. Only using this page") - ALL_PAGES = {DEBUGGING_PAGE} - AUDIO_PAGES = ALL_PAGES.union(AUDIO_PAGES) - - class Pages: def __init__(self, exclude_pages: Set[Type[Page]] = None, exclude_shady: bool = False) -> None: # initialize all page instances