diff --git a/app/library/downloads/core.py b/app/library/downloads/core.py index be7213da..4b512e3e 100644 --- a/app/library/downloads/core.py +++ b/app/library/downloads/core.py @@ -167,7 +167,7 @@ class Download: follow_redirect=True, capture_logs=logging.WARNING, ) - self.logs = [log["msg"] for log in logs] + self.logs = logs if info: self.info_dict = info diff --git a/app/library/downloads/extractor.py b/app/library/downloads/extractor.py index 3e11a7a6..88cdf093 100644 --- a/app/library/downloads/extractor.py +++ b/app/library/downloads/extractor.py @@ -257,10 +257,10 @@ def extract_info_sync( level=logging.DEBUG if debug else logging.WARNING, ) - captured_logs: list[dict[str, Any]] = kwargs.get("captured_logs", []) + captured_logs: list[str] = kwargs.get("captured_logs", []) if capture_logs is not None: log_wrapper.add_target( - target=lambda level, msg: captured_logs.append({"level": level, "msg": msg}), + target=lambda _, msg: captured_logs.append(msg), level=capture_logs, name="log-capture", )