From 0cb245f47aef6bb5f040e19bea57155cfd942349 Mon Sep 17 00:00:00 2001 From: Parasitic5283 Date: Tue, 15 Oct 2024 10:30:47 +0200 Subject: [PATCH] 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 @@ class dl: 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)):