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