From 542e1764384cf66f66e111e7c4f048ef767770bc Mon Sep 17 00:00:00 2001 From: Parasitic5283 Date: Mon, 15 Jul 2024 11:00:22 +0200 Subject: [PATCH 1/2] Allow configuring dynamic save paths # devine.yaml example dl: no_folder: True directories: downloads: "~/Downloads/{title}/Season {season:02}" --- devine/commands/dl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/commands/dl.py b/devine/commands/dl.py index d4857ce..7d6c6f5 100644 --- a/devine/commands/dl.py +++ b/devine/commands/dl.py @@ -729,7 +729,7 @@ def result( for muxed_path in muxed_paths: 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) if not no_folder and isinstance(title, (Episode, Song)): From 0cb245f47aef6bb5f040e19bea57155cfd942349 Mon Sep 17 00:00:00 2001 From: Parasitic5283 Date: Tue, 15 Oct 2024 10:30:47 +0200 Subject: [PATCH 2/2] Update dl.py --- devine/commands/dl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/devine/commands/dl.py b/devine/commands/dl.py index 7d6c6f5..a380f59 100644 --- a/devine/commands/dl.py +++ b/devine/commands/dl.py @@ -729,7 +729,10 @@ def result( for muxed_path in muxed_paths: media_info = MediaInfo.parse(muxed_path) - final_dir = Path(str(config.directories.downloads).format(**title.__dict__)) + final_dir = config.directories.downloads + if isinstance(title, Episode): + final_dir = Path(str(config.directories.downloads).format(**title.__dict__)) + final_filename = title.get_filename(media_info, show_service=not no_source) if not no_folder and isinstance(title, (Episode, Song)):