diff --git a/plugin/core/url.py b/plugin/core/url.py index 1e9f09418..f08a792dd 100644 --- a/plugin/core/url.py +++ b/plugin/core/url.py @@ -54,7 +54,7 @@ def parse_uri(uri: str) -> tuple[str, str]: path = url2pathname(parsed.path) if os.name == 'nt': netloc = url2pathname(parsed.netloc) - path = path.lstrip("\\") + 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: