implemented the blacklist
This commit is contained in:
parent
6b50e62b37
commit
ef08dca088
@ -314,7 +314,7 @@ class Page:
|
|||||||
override_existing: bool = False,
|
override_existing: bool = False,
|
||||||
create_target_on_demand: bool = True,
|
create_target_on_demand: bool = True,
|
||||||
download_all: bool = False,
|
download_all: bool = False,
|
||||||
exclude_album_type: Set[AlbumType] = None
|
exclude_album_type: Set[AlbumType] = shared.ALBUM_TYPE_BLACKLIST
|
||||||
) -> DownloadResult:
|
) -> DownloadResult:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import logging
|
import logging
|
||||||
import random
|
import random
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import List, Tuple
|
from typing import List, Tuple, Set
|
||||||
|
|
||||||
from .path_manager import LOCATIONS
|
from .path_manager import LOCATIONS
|
||||||
from .config import LOGGING_SECTION, AUDIO_SECTION, CONNECTION_SECTION, MISC_SECTION, PATHS_SECTION
|
from .config import LOGGING_SECTION, AUDIO_SECTION, CONNECTION_SECTION, MISC_SECTION, PATHS_SECTION
|
||||||
@ -101,4 +101,4 @@ SHOW_DOWNLOAD_ERRORS_THRESHOLD = CONNECTION_SECTION.SHOW_DOWNLOAD_ERRORS_THRESHO
|
|||||||
SORT_BY_DATE = AUDIO_SECTION.SORT_BY_DATE.object_from_value
|
SORT_BY_DATE = AUDIO_SECTION.SORT_BY_DATE.object_from_value
|
||||||
SORT_BY_ALBUM_TYPE = AUDIO_SECTION.SORT_BY_ALBUM_TYPE.object_from_value
|
SORT_BY_ALBUM_TYPE = AUDIO_SECTION.SORT_BY_ALBUM_TYPE.object_from_value
|
||||||
|
|
||||||
ALBUM_TYPE_BLACKLIST: List[AlbumType] = AUDIO_SECTION.ALBUM_TYPE_BLACKLIST.object_from_value
|
ALBUM_TYPE_BLACKLIST: Set[AlbumType] = set(AUDIO_SECTION.ALBUM_TYPE_BLACKLIST.object_from_value)
|
||||||
|
Loading…
Reference in New Issue
Block a user