draft: rewriting downloading

This commit is contained in:
Hellow
2024-05-13 21:45:12 +02:00
parent 0e6fe8187a
commit b09d6f2691
6 changed files with 114 additions and 24 deletions

View File

@@ -107,7 +107,7 @@ class Page:
This is an abstract class, laying out the
functionality for every other class fetching something
"""
DOWNLOAD_PRIORITY: int = 0
SOURCE_TYPE: SourcePages
LOGGER = logging.getLogger("this shouldn't be used")

View File

@@ -49,7 +49,7 @@ class BandcampTypes(Enum):
class Bandcamp(Page):
# CHANGE
DOWNLOAD_PRIORITY = 10
SOURCE_TYPE = SourcePages.BANDCAMP
LOGGER = logging_settings["bandcamp_logger"]

View File

@@ -111,7 +111,7 @@ def parse_url(url: str) -> MusifyUrl:
class Musify(Page):
# CHANGE
DOWNLOAD_PRIORITY = 9
SOURCE_TYPE = SourcePages.MUSIFY
LOGGER = logging_settings["musify_logger"]