Skip to content

play_genre

Ronald Record edited this page Aug 4, 2023 · 1 revision

NAME

play_genre - Play Roon Library Genre

SYNOPSIS

play_genre [ GENRE ] [ EXGENRE ]

DESCRIPTION

Plays the Roon Library genre named GENRE. Search for Roon Library genres whose name contains the case-sensitive string GENRE. If there is a match on the search substring then play_genre will play the first genre that matches. If more than one Roon Library genre name matches the search substring then play_genre will return a list of matching genre names.

COMMAND LINE OPTIONS

GENRE : Provide an genre name, in quotes if it contains spaces, or a case-sensitive substring. A Roon library genre name matching the provided genre name or containing the substring will be played if a match is found.

EXGENRE : Provide a genre exclusion string, in quotes if it contains spaces. No Roon library genre names including the provided genre exclusion string will be played

EXAMPLES

play_genre Rock : Will play the Roon library genre whose name contains the string "Rock". If more than one genre name matches, it will play the first match and list all matches

play_genre Rock Pop : Will play the Roon library genre whose name contains the string "Rock" but not the string "Pop"

AUTHORS

Written by Ronald Record [email protected]

LICENSING

PLAY_GENRE is distributed under an Open Source license. See the file LICENSE in the PLAY_GENRE source distribution for information on terms & conditions for accessing and otherwise using PLAY_GENRE and for a DISCLAIMER OF ALL WARRANTIES.

BUGS

Submit bug reports online at: https://github.com/doctorfree/RoonCommandLine/issues

SEE ALSO

clone_pyroon(1), get_core_ip(1), get_zone_info(1), get_zones(1), list_albums(1), list_artist_albums(1), list_artists(1), list_composers(1), list_genre_albums(1), list_genre_artists(1), list_genres(1), list_playlists(1), list_radio(1), list_tags(1), list_zones(1), play_album(1), play_artist(1), play_artist_album(1), play_artist_track(1), play_composer(1), play_genre(1), play_genre_album(1), play_genre_artist(1), play_playlist(1), play_radio(1), play_tag(1), roon(1), set_zone(1), set_zone_group(1), zone_command(1)

Full documentation and sources at: https://github.com/doctorfree/RoonCommandLine

The corresponding Python script, /usr/local/Roon/api/play_genre.py, can be invoked directly as:

python3 /usr/local/Roon/api/play_genre.py [ options]

Where [ options ] are described in the following usage message:

usage: play_genre.py [-h] [-g GENRE] [-x EXGENRE] [-z ZONE]

optional arguments:
  -h, --help            show this help message and exit
  -g GENRE, --genre GENRE
                        genre selection
  -x EXGENRE, --exgenre EXGENRE
                        genre exclude search term
  -z ZONE, --zone ZONE  zone selection
Clone this wiki locally