kllk
Some checks failed
smoke-mm / Install & smoke test mm --help (push) Has been cancelled

This commit is contained in:
nose
2025-12-24 17:58:57 -08:00
parent d7fc8c4576
commit df24a0cb44
47 changed files with 8039 additions and 82 deletions

View File

@@ -1104,10 +1104,11 @@ def _run(result: Any, args: Sequence[str], config: Dict[str, Any]) -> int:
# Use config from context or load it
config_data = config if config else {}
storage_path = get_local_storage_path(config_data)
if not storage_path:
debug("Local storage path not configured.")
return 1
storage_path = get_local_storage_path(config_data) or _default_state_dir()
try:
Path(storage_path).mkdir(parents=True, exist_ok=True)
except Exception:
pass
with LocalLibrarySearchOptimizer(storage_path) as db:
if db.save_playlist(playlist_name, clean_items):
@@ -1720,12 +1721,14 @@ CMDLET = Cmdlet(
CmdletArg(
name="save",
type="flag",
description="Save current playlist to database"
description="Save current playlist to database",
requires_db=True,
),
CmdletArg(
name="load",
type="flag",
description="List saved playlists"
description="List saved playlists",
requires_db=True,
),
CmdletArg(
name="current",