music-kraken-core/music_kraken/download/__init__.py

21 lines
661 B
Python
Raw Normal View History

2024-05-13 19:45:12 +00:00
from dataclasses import dataclass, field
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