summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/model
diff options
context:
space:
mode:
authorexislow <exislow@users.noreply.github.com>2024-11-13 12:36:35 +0100
committerGitHub <noreply@github.com>2024-11-13 12:36:35 +0100
commitc75edc9b6ba3821f295e057ffd3972bcd5142b55 (patch)
treed549a9f69c2349421a7f17155ee8638946fabbe7 /tidal_dl_ng/model
parentbeea8f1fe75b56ec743b17076d65756bc4e9ec30 (diff)
parentf5ed1c6554dbe5e7dda8ce662ac7ee49919cece3 (diff)
downloadtidal-dl-ng-c75edc9b6ba3821f295e057ffd3972bcd5142b55.tar.gz
Merge pull request #229 from exislow/196-feature-do-not-add-the-2-5-second-pause-until-the-next-file-if-the-current-file-is-skipped
196 feature do not add the 2 5 second pause until the next file if the current file is skipped
Diffstat (limited to 'tidal_dl_ng/model')
-rw-r--r--tidal_dl_ng/model/cfg.py10
-rw-r--r--tidal_dl_ng/model/downloader.py3
2 files changed, 6 insertions, 7 deletions
diff --git a/tidal_dl_ng/model/cfg.py b/tidal_dl_ng/model/cfg.py
index 6e9b991..631a2f2 100644
--- a/tidal_dl_ng/model/cfg.py
+++ b/tidal_dl_ng/model/cfg.py
@@ -3,13 +3,13 @@ from dataclasses import dataclass
from dataclasses_json import dataclass_json
from tidalapi import Quality
-from tidal_dl_ng.constants import CoverDimensions, QualityVideo, SkipExisting
+from tidal_dl_ng.constants import CoverDimensions, QualityVideo
@dataclass_json
@dataclass
class Settings:
- skip_existing: SkipExisting = SkipExisting.Disabled
+ skip_existing: bool = True
lyrics_embed: bool = False
lyrics_file: bool = False
# TODO: Implement API KEY selection.
@@ -43,11 +43,7 @@ class Settings:
@dataclass_json
@dataclass
class HelpSettings:
- skip_existing: str = (
- "Do not download, if file already exists. Possible option false = do not skip, "
- "'exact' = if filename already exists, 'extension_ignore' = skip even if a file with a "
- "different file extension exists."
- )
+ skip_existing: str = "Skip download if file already exists."
album_cover_save: str = "Safe cover to album folder."
lyrics_embed: str = "Embed lyrics in audio file, if lyrics are available."
lyrics_file: str = "Save lyrics to separate *.lrc file, if lyrics are available."
diff --git a/tidal_dl_ng/model/downloader.py b/tidal_dl_ng/model/downloader.py
index 52c8e30..3f6151f 100644
--- a/tidal_dl_ng/model/downloader.py
+++ b/tidal_dl_ng/model/downloader.py
@@ -1,6 +1,8 @@
import pathlib
from dataclasses import dataclass
+from requests import HTTPError
+
@dataclass
class DownloadSegmentResult:
@@ -8,3 +10,4 @@ class DownloadSegmentResult:
url: str
path_segment: pathlib.Path
id_segment: int
+ error: HTTPError | None = None