diff --git a/plugin/core/url.py b/plugin/core/url.py index 75c3f6235..3a17fe6c0 100644 --- a/plugin/core/url.py +++ b/plugin/core/url.py @@ -56,7 +56,8 @@ def parse_uri(uri: str) -> tuple[str, str]: path = url2pathname(parsed.path) if os.name == 'nt': netloc = url2pathname(parsed.netloc) - path = path.lstrip("\\") + if path[0] == '\\': + path = path[1:] path = re.sub(r"^/([a-zA-Z]:)", r"\1", path) # remove slash preceding drive letter path = re.sub(r"^([a-z]):", _uppercase_driveletter, path) if netloc: