mirror of https://github.com/devine-dl/devine.git
Allow configuring dynamic save paths
# devine.yaml example dl: no_folder: True directories: downloads: "~/Downloads/{title}/Season {season:02}"
This commit is contained in:
parent
09eda16882
commit
542e176438
|
@ -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)):
|
||||||
|
|
Loading…
Reference in New Issue