SC working again
This commit is contained in:
parent
049116265e
commit
a5b3615a7a
4 changed files with 8 additions and 3 deletions
|
|
@ -55,7 +55,6 @@ presets:
|
||||||
file_name: "{output_file_name}.{ext}"
|
file_name: "{output_file_name}.{ext}"
|
||||||
convert_thumbnail: "jpeg"
|
convert_thumbnail: "jpeg"
|
||||||
thumbnail_name: "{output_file_name}.jpg"
|
thumbnail_name: "{output_file_name}.jpg"
|
||||||
maintain_download_archive: True
|
|
||||||
convert_thumbnail:
|
convert_thumbnail:
|
||||||
to: "jpg"
|
to: "jpg"
|
||||||
nfo_tags:
|
nfo_tags:
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ class OutputOptions(StrictDictValidator):
|
||||||
key="maintain_download_archive", validator=BoolValidator, default=False
|
key="maintain_download_archive", validator=BoolValidator, default=False
|
||||||
)
|
)
|
||||||
self.maintain_stale_file_deletion = self._validate_key_if_present(
|
self.maintain_stale_file_deletion = self._validate_key_if_present(
|
||||||
key="maintain_stale_file_deletion", validator=DateRangeValidator, default=False
|
key="maintain_stale_file_deletion", validator=DateRangeValidator
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.maintain_stale_file_deletion and not self.maintain_download_archive:
|
if self.maintain_stale_file_deletion and not self.maintain_download_archive:
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ class SoundcloudAlbumsAndSinglesDownloadOptions(SoundcloudDownloaderOptions):
|
||||||
class SoundcloudAlbumsAndSinglesDownloader(
|
class SoundcloudAlbumsAndSinglesDownloader(
|
||||||
SoundcloudDownloader[SoundcloudAlbumsAndSinglesDownloadOptions]
|
SoundcloudDownloader[SoundcloudAlbumsAndSinglesDownloadOptions]
|
||||||
):
|
):
|
||||||
downloader_options_type = SoundcloudDownloaderOptions
|
downloader_options_type = SoundcloudAlbumsAndSinglesDownloadOptions
|
||||||
|
|
||||||
def download(self) -> List[SoundcloudTrack]:
|
def download(self) -> List[SoundcloudTrack]:
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,8 @@ from ytdl_subscribe.config.config_file import ConfigFile
|
||||||
from ytdl_subscribe.config.subscription import SubscriptionValidator
|
from ytdl_subscribe.config.subscription import SubscriptionValidator
|
||||||
from ytdl_subscribe.utils.exceptions import ValidationException
|
from ytdl_subscribe.utils.exceptions import ValidationException
|
||||||
|
|
||||||
|
DEBUGGER_MODE = True
|
||||||
|
|
||||||
|
|
||||||
def _download_subscriptions_from_yaml_files(config: ConfigFile, args: argparse.Namespace) -> None:
|
def _download_subscriptions_from_yaml_files(config: ConfigFile, args: argparse.Namespace) -> None:
|
||||||
"""
|
"""
|
||||||
|
|
@ -66,9 +68,13 @@ if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
_main()
|
_main()
|
||||||
except ValidationException as validation_exception:
|
except ValidationException as validation_exception:
|
||||||
|
if DEBUGGER_MODE:
|
||||||
|
raise
|
||||||
print(validation_exception)
|
print(validation_exception)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
except Exception as exc: # pylint: disable=broad-except
|
except Exception as exc: # pylint: disable=broad-except
|
||||||
|
if DEBUGGER_MODE:
|
||||||
|
raise
|
||||||
print(traceback.format_exc())
|
print(traceback.format_exc())
|
||||||
print(
|
print(
|
||||||
"A fatal error occurred. Please copy and paste the stacktrace above and make a Github "
|
"A fatal error occurred. Please copy and paste the stacktrace above and make a Github "
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue