More stuff please #11

Merged
dali99 merged 4 commits from more_cli_features into master 2024-05-19 12:48:15 +02:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 1009b29995 - Show all commits

View File

@ -64,7 +64,7 @@ def _add(
api.playlist_goto(current_index if put_pre else current_index + 1) api.playlist_goto(current_index if put_pre else current_index + 1)
api.set_playing(True) api.set_playing(True)
@cli.command(help="Add one ore more items to the playlist") @cli.command(help="Add one or more items to the playlist")
def play( def play(
urls: list[str], urls: list[str],
pre: bool = False, pre: bool = False,
@ -72,14 +72,14 @@ def play(
): ):
_add(urls, put_post=not pre, put_pre=pre, play=True, api_base=api_base) _add(urls, put_post=not pre, put_pre=pre, play=True, api_base=api_base)
@cli.command(help="Add one ore more items to the playlist") @cli.command(help="Add one or more items to the playlist")
def next( def next(
urls: list[str], urls: list[str],
api_base: str = DEFAULT_API_BASE, api_base: str = DEFAULT_API_BASE,
): ):
_add(urls, put_post=True, api_base=api_base) _add(urls, put_post=True, api_base=api_base)
@cli.command(help="Add one ore more items to the playlist") @cli.command(help="Add one or more items to the playlist")
def queue( def queue(
urls: list[str], urls: list[str],
play: bool = True, play: bool = True,