From e22f8324a34b5298b71e0195537b19cb214a8467 Mon Sep 17 00:00:00 2001 From: 95833 <987004590@qq.com> Date: Mon, 23 Dec 2024 18:19:54 +0800 Subject: [PATCH] Update types.py --- plugin/core/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/core/types.py b/plugin/core/types.py index 0bde33dc3..74c29bd93 100644 --- a/plugin/core/types.py +++ b/plugin/core/types.py @@ -854,7 +854,7 @@ def map_uri_on_payload(self, payload: Any, is_from_client_to_server: bool) -> An for i, v in enumerate(payload): payload[i] = self.map_uri_on_payload(v, is_from_client_to_server) - if isinstance(payload, str) and payload.startswith("file://"): + if isinstance(payload, str) and payload.startswith("file://") and self.path_maps: for path_map in self.path_maps: path, mapped = path_map.map_from_local_to_remote(payload) if is_from_client_to_server else \ path_map.map_from_remote_to_local(payload)