Skip to main content

Album Browse

Album Browse

This page lists the filters and sorts the album browse accepts. Refer to the main Api Browse methods page for how to send them.

NOTE An album row is per catalog, so the same album found in two catalogs is two albums with two ids.

NOTE When the per-user album_group preference is off the web interface browses album disks instead; the albums method never changes shape with that preference.

API methods using this browse

albums, artist_albums, browse, genre_albums

Available browse filters

Send filters in the cond parameter as filter,value pairs, separated by ;

e.g. cond=starts_with,a;catalog,2

FilterValueDescription
add_gtUNIX timestampOnly albums with a song added to the catalog at or after this time.
add_ltUNIX timestampOnly albums with a song added to the catalog at or before this time.
album_artistartist idOnly albums whose album artist is this artist. Send 0 for albums that have no album artist.
alpha_matchstringAlias of like.
artistartist idOnly albums this artist appears on, as the album artist or on one of the songs.
catalogcatalog idOnly albums in this catalog. 0 is ignored rather than matching catalog zero, so it means every catalog.
catalog_enablednoneOnly albums in an enabled catalog. Needs no value.
equalstringThe album name is exactly this value. Matching is case insensitive.
exact_matchstringAlias of equal.
genregenre idOnly albums tagged with this genre.
idarrayOnly these album ids. It takes a list, which cond cannot send, so cond=id,1 builds an empty list and the browse returns nothing.
likestringThe album name contains this value.
no_genrenoneOnly albums with no genre at all. Needs no value, and clears any genre filter.
no_tagnoneAlias of no_genre.
not_likestringThe album name does not contain this value.
not_starts_withstringThe album name does not start with this value.
regex_matchregexThe album name matches this MySQL regular expression. Setting it clears any regex_not_match filter.
regex_not_matchregexThe album name does not match this MySQL regular expression. Setting it clears any regex_match filter.
song_artistartist idOnly albums with a song credited to this artist. Send 0 for albums with no such song.
starts_withstringThe album name starts with this value.
taggenre idAlias of genre.
unplayed1Only albums that have never been played. The value must be 1; anything else, including an empty value, is ignored.
update_gtUNIX timestampOnly albums with a song whose tags were updated at or after this time.
update_ltUNIX timestampOnly albums with a song whose tags were updated at or before this time.
user_catalognoneOnly albums in a catalog the current user is allowed to see. Needs no value.
user_flag0 or 1Send 1 for albums the current user has favourited, 0 for the ones they have not.
user_rating0 to 5Only albums the current user rated this value. Send 0 for albums they have not rated at all.

Available browse sorts

Send a single sort in the sort parameter as name,order, where order is ASC or DESC.

e.g. sort=name,DESC

SortDescription
addition_timeWhen it was added to the catalog.
album_artistAlbum artist name.
album_artist_album_sortAlbum artist name, then whatever the server's album_sort setting says, which is album name and year by default.
album_artist_titleAlbum artist name, then album name.
artistArtist name.
barcodeAlbum barcode.
catalogThe catalog id it belongs to.
catalog_numberAlbum catalog number.
disk_countHow many disks the album has.
generic_artistAlbum artist name, falling back to the artist of a song on the album when the album has no album artist.
idThe album id, which is the order they were created in.
nameAlbum name.
name_original_yearAlbum name, then original release year, falling back to the release year.
name_yearAlbum name, then release year.
original_yearOriginal release year, falling back to the release year, then when it was added.
randRandom order, applied per request. Paging through it repeats and skips albums, so ask for everything in one call.
ratingYour own rating, then when you set it. Albums you have not rated group together.
release_statusAlbum release status, e.g. official or bootleg.
release_typeAlbum release type, e.g. album, ep or single.
song_countHow many songs it has.
subtitleAlbum subtitle.
timeTotal running time of the album in seconds.
titleAlias of name.
total_countHow many times it has been played.
user_flagWhen you added it to your favourites. This is a date, not a flag, so everything you have not favourited groups together.
user_flag_ratingWhen you added it to your favourites, then your rating.
userflagAlias of user_flag.
versionAlbum version.
yearRelease year, then when it was added to the catalog.