#! rockbox/tagbrowser/2.0 # ^ Version header must be the first line of every file # Basic format declarations %format "albumtitle" "%02d. %s" tracknum title ? tracknum > "0" %format "albumtitle" "%s" title %format "fulltitle" "%s - %s - %02d. %s" artist album tracknum title ? album !~ "" tracknum > "0" %format "fulltitle" "%s - %02d. %s" artist tracknum title ? tracknum > "0" %format "artist.All" "%s - %s - %02d. %s" artist album tracknum title ? album !~ "" tracknum > "0" %format "artist.All" "%s - %02d. %s" artist tracknum title ? artist !~ "" tracknum > "0" %format "artist.album.All" "%s - %02d. %s" album tracknum title ? album !~ "" tracknum > "0" %format "albumartist.All" "%s - %s - %02d. %s" artist album tracknum title ? album !~ "" tracknum > "0" %format "albumartist.All" "%s - %02d. %s" artist tracknum title ? tracknum > "0" %format "albumartist.album.All" "%s - %02d. %s" album tracknum title ? album !~ "" tracknum > "0" %format "album.All" "%s - %02d. %s" album tracknum title ? album !~ "" tracknum > "0" %format "genre.All" "%s - %s - %s - %02d. %s" genre artist album tracknum title ? genre !~ "" album !~ "" tracknum > "0" %format "genre.All" "%s - %s - %02d. %s" genre artist tracknum title ? genre !~ "" tracknum > "0" %format "genre.All" "%s - %s" genre title ? genre !~ "" %format "genre.All" "%s - %s - %02d. %s" artist album tracknum title ? album !~ "" tracknum > "0" %format "genre.All" "%s - %02d. %s" artist tracknum title ? artist !~ "" tracknum > "0" %format "genre.artist.All" "%s - %s - %02d. %s" artist album tracknum title ? album !~ "" tracknum > "0" %format "genre.artist.album.All" "%s - %02d. %s" album tracknum title ? album !~ "" tracknum > "0" %format "composer.All" "%s - %s - %02d. %s" composer album tracknum title ? composer !~ "" album !~ "" tracknum > "0" %format "composer.All" "%s - %02d. %s" composer tracknum title ? composer !~ "" tracknum > "0" %format "composer.All" "%s - %s" composer title ? composer !~ "" %format "composer.All" "%s - %02d. %s" album tracknum title ? album !~ "" tracknum > "0" %format "composer.album.All" "%s - %02d. %s" album tracknum title ? album !~ "" tracknum > "0" %format "year.All" "%04d %s - %s - %02d. %s" year artist album tracknum title ? year > "0" album !~ "" tracknum > "0" %format "year.All" "%04d %s - %02d. %s" year artist tracknum title ? year > "0" tracknum > "0" %format "year.All" "%s - %s - %02d. %s" artist album tracknum title ? album !~ "" tracknum > "0" %format "year.All" "%s - %02d. %s" artist tracknum title ? tracknum > "0" %format "year.artist.All" "%s - %s - %02d. %s" artist album tracknum title ? album !~ "" tracknum > "0" %format "year.artist.All" "%s - %02d. %s" artist tracknum title ? tracknum > "0" %format "year.artist.album.All" "%s - %02d. %s" album tracknum title ? album !~ "" tracknum > "0" %format "year.artist.album.All" "%02d. %s" tracknum title ? tracknum > "0" %format "rating.All" "%d %s - %s - %02d. %s" rating artist album tracknum title ? album !~ "" tracknum > "0" %format "rating.All" "%d %s - %02d. %s" rating artist tracknum title ? tracknum > "0" # # === Begin of "A to Z" sub menus # # Define the A to Z Artist sub menu %menu_start "custom_artist" "Artist A to Z" "Numeric" -> artist ? artist < "A" -> album -> title = "albumtitle" "A" -> artist ? artist ^ "A" -> album -> title = "albumtitle" "B" -> artist ? artist ^ "B" -> album -> title = "albumtitle" "C" -> artist ? artist ^ "C" -> album -> title = "albumtitle" "D" -> artist ? artist ^ "D" -> album -> title = "albumtitle" "E" -> artist ? artist ^ "E" -> album -> title = "albumtitle" "F" -> artist ? artist ^ "F" -> album -> title = "albumtitle" "G" -> artist ? artist ^ "G" -> album -> title = "albumtitle" "H" -> artist ? artist ^ "H" -> album -> title = "albumtitle" "I" -> artist ? artist ^ "I" -> album -> title = "albumtitle" "J" -> artist ? artist ^ "J" -> album -> title = "albumtitle" "K" -> artist ? artist ^ "K" -> album -> title = "albumtitle" "L" -> artist ? artist ^ "L" -> album -> title = "albumtitle" "M" -> artist ? artist ^ "M" -> album -> title = "albumtitle" "N" -> artist ? artist ^ "N" -> album -> title = "albumtitle" "O" -> artist ? artist ^ "O" -> album -> title = "albumtitle" "P" -> artist ? artist ^ "P" -> album -> title = "albumtitle" "Q" -> artist ? artist ^ "Q" -> album -> title = "albumtitle" "R" -> artist ? artist ^ "R" -> album -> title = "albumtitle" "S" -> artist ? artist ^ "S" -> album -> title = "albumtitle" "T" -> artist ? artist ^ "T" -> album -> title = "albumtitle" "U" -> artist ? artist ^ "U" -> album -> title = "albumtitle" "V" -> artist ? artist ^ "V" -> album -> title = "albumtitle" "W" -> artist ? artist ^ "W" -> album -> title = "albumtitle" "X" -> artist ? artist ^ "X" -> album -> title = "albumtitle" "Y" -> artist ? artist ^ "Y" -> album -> title = "albumtitle" "Z" -> artist ? artist ^ "Z" -> album -> title = "albumtitle" # ^ An empy line ends the menu # Define the A to Z album sub menu %menu_start "custom_album" "Album A to Z" "Numeric" -> album ? album < "A" -> title = "albumtitle" "A" -> album ? album ^ "A" -> title = "albumtitle" "B" -> album ? album ^ "B" -> title = "albumtitle" "C" -> album ? album ^ "C" -> title = "albumtitle" "D" -> album ? album ^ "D" -> title = "albumtitle" "E" -> album ? album ^ "E" -> title = "albumtitle" "F" -> album ? album ^ "F" -> title = "albumtitle" "G" -> album ? album ^ "G" -> title = "albumtitle" "H" -> album ? album ^ "H" -> title = "albumtitle" "I" -> album ? album ^ "I" -> title = "albumtitle" "J" -> album ? album ^ "J" -> title = "albumtitle" "K" -> album ? album ^ "K" -> title = "albumtitle" "L" -> album ? album ^ "L" -> title = "albumtitle" "M" -> album ? album ^ "M" -> title = "albumtitle" "N" -> album ? album ^ "N" -> title = "albumtitle" "O" -> album ? album ^ "O" -> title = "albumtitle" "P" -> album ? album ^ "P" -> title = "albumtitle" "Q" -> album ? album ^ "Q" -> title = "albumtitle" "R" -> album ? album ^ "R" -> title = "albumtitle" "S" -> album ? album ^ "S" -> title = "albumtitle" "T" -> album ? album ^ "T" -> title = "albumtitle" "U" -> album ? album ^ "U" -> title = "albumtitle" "V" -> album ? album ^ "V" -> title = "albumtitle" "W" -> album ? album ^ "W" -> title = "albumtitle" "X" -> album ? album ^ "X" -> title = "albumtitle" "Y" -> album ? album ^ "Y" -> title = "albumtitle" "Z" -> album ? album ^ "Z" -> title = "albumtitle" # Define the A to Z track sub menu %menu_start "custom_track" "Track A to Z" "Numeric" -> title ? title < "A" -> title = "albumtitle" "A" -> title ? title ^ "A" -> title = "albumtitle" "B" -> title ? title ^ "B" -> title = "albumtitle" "C" -> title ? title ^ "C" -> title = "albumtitle" "D" -> title ? title ^ "D" -> title = "albumtitle" "E" -> title ? title ^ "E" -> title = "albumtitle" "F" -> title ? title ^ "F" -> title = "albumtitle" "G" -> title ? title ^ "G" -> title = "albumtitle" "H" -> title ? title ^ "H" -> title = "albumtitle" "I" -> title ? title ^ "I" -> title = "albumtitle" "J" -> title ? title ^ "J" -> title = "albumtitle" "K" -> title ? title ^ "K" -> title = "albumtitle" "L" -> title ? title ^ "L" -> title = "albumtitle" "M" -> title ? title ^ "M" -> title = "albumtitle" "N" -> title ? title ^ "N" -> title = "albumtitle" "O" -> title ? title ^ "O" -> title = "albumtitle" "P" -> title ? title ^ "P" -> title = "albumtitle" "Q" -> title ? title ^ "Q" -> title = "albumtitle" "R" -> title ? title ^ "R" -> title = "albumtitle" "S" -> title ? title ^ "S" -> title = "albumtitle" "T" -> title ? title ^ "T" -> title = "albumtitle" "U" -> title ? title ^ "U" -> title = "albumtitle" "V" -> title ? title ^ "V" -> title = "albumtitle" "W" -> title ? title ^ "W" -> title = "albumtitle" "X" -> title ? title ^ "X" -> title = "albumtitle" "Y" -> title ? title ^ "Y" -> title = "albumtitle" "Z" -> title ? title ^ "Z" -> title = "albumtitle" # Define the A to Z sub menu %menu_start "a2z" "A to Z..." "Artists" ==> "custom_artist" "Albums" ==> "custom_album" "Tracks" ==> "custom_track" # # === Begin of "Search by..." sub menu # # Define the search sub menu %menu_start "search" "Search by..." "Artist" -> artist ? artist ~ "" -> album -> title = "albumtitle" "Album Artist" -> albumartist ? albumartist ~ "" -> album -> title = "albumtitle" "Album" -> album ? album ~ "" -> title = "albumtitle" "Title" -> title = "albumtitle" ? title ~ "" "Album by year" -> album ? year = "" -> title = "albumtitle" "Artist between years" -> artist ? year >= "" & year <= "" -> album -> title = "albumtitle" "Album between years" -> album ? year >= "" & year <= "" -> title = "albumtitle" "Filename" -> filename ? filename ~ "" "Score" -> title = "fmt_score" ? autoscore > "" "User Rating" -> title = "fmt_rating" ? rating > "" "Comment" -> album ? comment ~ "" -> title = "albumtitle" # Define the "same as current" sub menu %menu_start "same" "Same as current" "Directory" -> title ? filename ^ "#directory#" "Title" -> title = "albumtitle" ? title = "#title#" "Artist" -> album ? artist = "#artist#" -> title = "albumtitle" "Album" -> title = "albumtitle" ? album = "#album#" "Composer" -> title = "albumtitle" ? composer = "#composer#" # Define the runtime sub menu %menu_start "runtime" "Play history" "Most played (Plays|Score)" -> title = "fmt_mostplayed" ? playcount > "0" "Recently played tracks" -> title = "fmt_lastplayed" ? playcount > "0" "Never played tracks" -> artist ? playcount == "0" -> album -> title = "fmt_title" "Favourite artists" -> artist ? playcount > "3" & autoscore > "85" -> album -> title = "fmt_best_tracks" "Favourite albums" -> album ? playcount > "3" & autoscore > "85" -> title = "fmt_best_tracks" "Recent favourites" -> title = "fmt_lastplayed" ? playcount > "3" & autoscore > "85" "New favourites" -> artist ? playcount <= "3" & autoscore > "85" -> album -> title = "fmt_best_tracks" "Forgotten favourites" -> title = "fmt_forgotten" ? playcount > "3" & autoscore > "85" # # === Begin of main menu # # Define the title of the main menu %menu_start "main" "Rockbox Database" "Artist" -> artist -> album -> title = "albumtitle" "Album Artist" -> albumartist -> album -> title = "albumtitle" "Album" -> album -> title = "albumtitle" "Genre" -> genre -> artist -> album -> title = "albumtitle" "Composer" -> composer ? genre @ "Classical|Soundtrack" -> album -> title = "albumtitle" "Track" -> title = "fulltitle" "Year" -> year ? year > "0" -> artist -> album -> title = "albumtitle" "User Rating" -> rating -> title = "rating.All" "Recently Added" -> album ? entryage < "4" & commitid > "0" -> title = "albumtitle" "A to Z..." ==> "a2z" "History..." ==> "runtime" "Same as current..." ==> "same" "Search..." ==> "search" "Custom view..." ==> "custom" # And finally set main menu as our root menu %root_menu "main"