Update dl.py

This commit is contained in:
Parasitic5283 2024-10-15 10:30:47 +02:00 committed by GitHub
parent 542e176438
commit 0cb245f47a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -729,7 +729,10 @@ 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
if isinstance(title, Episode):
final_dir = Path(str(config.directories.downloads).format(**title.__dict__)) 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)):