From bb59e25580a38819276eb42a26311d607ee4277e Mon Sep 17 00:00:00 2001 From: arabcoders Date: Tue, 18 Nov 2025 21:31:08 +0300 Subject: [PATCH] Fix: possible fix for not being able to download subtitles. --- app/library/Utils.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/library/Utils.py b/app/library/Utils.py index ff8c5487..876c6223 100644 --- a/app/library/Utils.py +++ b/app/library/Utils.py @@ -317,6 +317,7 @@ def extract_info( """ params: dict = { **config, + "simulate": True, "color": "no_color", "extract_flat": True, "skip_download": True, @@ -324,11 +325,6 @@ def extract_info( "ignore_no_formats_error": True, } - # Remove keys that are not needed for info extraction. - keys_to_remove: list = [key for key in params if str(key).startswith("write") or key in ["postprocessors"]] - for key in keys_to_remove: - params.pop(key, None) - if debug: params["verbose"] = True else: @@ -886,7 +882,9 @@ def move_file(old_path: Path, target_dir: Path) -> tuple[Path, list[tuple[Path, try: rolled_back_new.rename(rolled_back_old) except OSError: - LOG.error(f"Failed to rollback sidecar move from '{rolled_back_new}' to '{rolled_back_old}'") + LOG.error( + f"Failed to rollback sidecar move from '{rolled_back_new}' to '{rolled_back_old}'" + ) except OSError: LOG.error(f"Failed to rollback main file move from '{moved_main}' to '{old_path}'") raise