mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
fix: path empty
This commit is contained in:
+2
-1
@@ -24,7 +24,8 @@ class FileURI(BaseModel):
|
|||||||
path = uri[len(protocol):]
|
path = uri[len(protocol):]
|
||||||
storage = s.value
|
storage = s.value
|
||||||
break
|
break
|
||||||
|
if not path.startswith("/"):
|
||||||
|
path = "/" + path
|
||||||
path = Path(path).as_posix()
|
path = Path(path).as_posix()
|
||||||
return cls(storage=storage, path=path)
|
return cls(storage=storage, path=path)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user