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)