dfd
This commit is contained in:
@@ -177,7 +177,7 @@ class SharedArgs:
|
||||
LIBRARY = CmdletArg(
|
||||
"library",
|
||||
type="string",
|
||||
choices=["hydrus", "local", "soulseek", "libgen", "debrid", "ftp"],
|
||||
choices=["hydrus", "local", "soulseek", "libgen", "ftp"],
|
||||
description="Search library or source location."
|
||||
)
|
||||
|
||||
@@ -209,7 +209,7 @@ class SharedArgs:
|
||||
STORAGE = CmdletArg(
|
||||
"storage",
|
||||
type="enum",
|
||||
choices=["hydrus", "local", "debrid", "ftp", "matrix"],
|
||||
choices=["hydrus", "local", "ftp", "matrix"],
|
||||
required=False,
|
||||
description="Storage location or destination for saving/uploading files.",
|
||||
alias="s",
|
||||
@@ -240,12 +240,12 @@ class SharedArgs:
|
||||
def resolve_storage(storage_value: Optional[str], default: Optional[Path] = None) -> Path:
|
||||
"""Resolve a storage location name to a filesystem Path.
|
||||
|
||||
Maps storage identifiers (hydrus, local, debrid, ftp) to their actual
|
||||
Maps storage identifiers (hydrus, local, ftp) to their actual
|
||||
filesystem paths. This is the single source of truth for storage location resolution.
|
||||
Note: 0x0.st is now accessed via file providers (-provider 0x0), not storage.
|
||||
|
||||
Args:
|
||||
storage_value: One of 'hydrus', 'local', 'debrid', 'ftp', or None
|
||||
storage_value: One of 'hydrus', 'local', 'ftp', or None
|
||||
default: Path to return if storage_value is None (defaults to Videos)
|
||||
|
||||
Returns:
|
||||
@@ -266,7 +266,6 @@ class SharedArgs:
|
||||
storage_map = {
|
||||
'local': Path.home() / "Videos",
|
||||
'hydrus': Path.home() / ".hydrus" / "client_files",
|
||||
'debrid': Path.home() / "Debrid",
|
||||
'ftp': Path.home() / "FTP",
|
||||
'matrix': Path.home() / "Matrix", # Placeholder, not used for upload path
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user