This commit is contained in:
2026-01-22 02:04:15 -08:00
parent c74a1b264f
commit 3d571b007b
2 changed files with 81 additions and 103 deletions

View File

@@ -1473,31 +1473,31 @@ def _run(result: Any, args: Sequence[str], config: Dict[str, Any]) -> int:
name, items = result
current_playlist_name = name
# Queue items (replacing current playlist)
if items:
_queue_items(
items,
clear_first=True,
config=config,
start_opts=start_opts
)
else:
# Empty playlist, just clear
_send_ipc_command(
{
"command": ["playlist-clear"]
},
silent=True
)
# Queue items (replacing current playlist)
if items:
_queue_items(
items,
clear_first=True,
config=config,
start_opts=start_opts
)
else:
# Empty playlist, just clear
_send_ipc_command(
{
"command": ["playlist-clear"]
},
silent=True
)
# Switch to list mode to show the result
list_mode = True
index_arg = None
# Fall through to list logic
# Switch to list mode to show the result
list_mode = True
index_arg = None
# Fall through to list logic
except ValueError:
debug(f"Invalid playlist ID: {index_arg}")
return 1
except ValueError:
debug(f"Invalid playlist ID: {index_arg}")
return 1
# If we deleted or didn't have an index, list playlists
if not index_arg: