Allow configuring dynamic save paths

# devine.yaml example
dl:
  no_folder: True

directories:
  downloads: "~/Downloads/{title}/Season {season:02}"
This commit is contained in:
Parasitic5283 2024-07-15 11:00:22 +02:00 committed by GitHub
parent 09eda16882
commit 542e176438
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -729,7 +729,7 @@ class dl:
for muxed_path in muxed_paths: for muxed_path in muxed_paths:
media_info = MediaInfo.parse(muxed_path) media_info = MediaInfo.parse(muxed_path)
final_dir = config.directories.downloads final_dir = Path(str(config.directories.downloads).format(**title.__dict__))
final_filename = title.get_filename(media_info, show_service=not no_source) final_filename = title.get_filename(media_info, show_service=not no_source)
if not no_folder and isinstance(title, (Episode, Song)): if not no_folder and isinstance(title, (Episode, Song)):