2024-05-13 19:45:12 +00:00
|
|
|
from dataclasses import dataclass, field
|
2024-05-15 11:16:11 +00:00
|
|
|
from typing import Set
|
2024-05-13 19:45:12 +00:00
|
|
|
|
|
|
|
from ..utils.config import main_settings
|
|
|
|
from ..utils.enums.album import AlbumType
|
|
|
|
|
|
|
|
|
|
|
|
@dataclass
|
|
|
|
class FetchOptions:
|
|
|
|
download_all: bool = False
|
|
|
|
album_type_blacklist: Set[AlbumType] = field(default_factory=lambda: set(AlbumType(a) for a in main_settings["album_type_blacklist"]))
|
|
|
|
|
|
|
|
|
|
|
|
@dataclass
|
|
|
|
class DownloadOptions:
|
|
|
|
download_all: bool = False
|
|
|
|
album_type_blacklist: Set[AlbumType] = field(default_factory=lambda: set(AlbumType(a) for a in main_settings["album_type_blacklist"]))
|
|
|
|
|
2024-05-14 13:18:17 +00:00
|
|
|
download_again_if_found: bool = False
|
2024-05-13 19:45:12 +00:00
|
|
|
process_audio_if_found: bool = False
|
|
|
|
process_metadata_if_found: bool = True
|