f
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user