Rockbox General > Rockbox General Discussion

tagnavi.config v2.0 syntax

<< < (20/20)

roolku:
Hm, it works for me in the sim, so not much I can do. I assume the extra closing bracket after the condition is just a typo in the forum?


--- Quote ---How can I exclude files with these paths from the list?
--- End quote ---

You can place a database.ignore file in those dirs. See manual for more details.

fallout33:

--- Quote from: roolku on March 11, 2010, 11:53:44 AM ---[...] I assume the extra closing bracket after the condition is just a typo in the forum? [...]
--- End quote ---
The substring "<microSD1>" is the beginning of the filename when I access the file properties menu during playback or enter the "Files" menu from the main menu. It stands for the mount point of the microSDHC card which contains this file.


--- Quote from: roolku on March 11, 2010, 11:53:44 AM ---[...] You can place a database.ignore file in those dirs. [...]
--- End quote ---
Thank you, I will try that.

roolku:

--- Quote ---The substring "<microSD1>" is the beginning of the filename when I access the file properties menu during playback or enter the "Files" menu from the main menu. It stands for the mount point of the microSDHC card which contains this file.

--- End quote ---
I was referring to that line:


--- Code: ---"Artist - Title" -> title = "fmt_artist_title" ? filename !~ "/AUDIO/OE1" & filename !~ "/Audio/Bass")
--- End code ---

fallout33:

--- Quote from: roolku on March 11, 2010, 12:59:53 PM ---[...] I was referring to that line [...]
--- End quote ---
Oh, sorry, I misunderstood that.


--- Quote from: roolku on March 11, 2010, 11:53:44 AM ---[...] I assume the extra closing bracket after the condition is just a typo in the forum? [...]
--- End quote ---
Actually it is not only a typo in the forum but also in the config file too.

Sorry for bothering you with my mistake and thank you for your help!

iancer:
Well guys, here is the config I am currently crying over.
I'm at a aloss as to how to whip this into working shape...
The main feature I am interested in is the Bitrate related entries.


--- Code: ---#! rockbox/tagbrowser/2.0

#User-customisable Database viewer configuration file
#
# Required layout:
# Format declarations
# Sub-menu definitions
# Main menu definition
# Set menu as root

#Custom format declarations
# f_browse - basic tracknumber (padded with zeros to two characters) and title
# f_direct - title and artist for when the navigation leads directly to results by track
# f_chrono - includes year for year/decade based browsing
# f_runtime - top 100 tracks by times played (playcount) then autoscore. Sorted inverse to bring most-played to the top
# f_lastplayed- last 100 tracks played in play order. Sorted inverse to bring most recent to the top, but playcount display stripped out for clarity
# f_forgotten - as above, but sorted for least recent at the top
# f_mood - simple title and respective album
# f_radio - for sorting tracks in order of duration (length). Strip value of 15 = 8 for the length tag plus 7 for "/radio/", which all my podcast/radio tracks have in their filename
# f_radio_old - as per "f_lastplayed", but again with additional strip value to remove the first portion of the filepath

%format "f_browse" "%02d - %s" tracknum title
%format "f_direct" "%s (%s)" title artist
%format "f_chrono" "%04d - %s (%s)" year title artist
%format "f_runtime" "%2d|%3d %s (%s)" playcount autoscore title artist %sort = "inverse" %limit = "100"
%format "f_lastplayed"  "%06d%s (%s)" lastplayed title artist %sort = "inverse" %limit = "100" %strip = "6"
%format "f_forgotten"  "%06d%s (%s)" lastplayed title artist %limit = "100" %strip = "6"
%format "f_mood" "%s (%s)" title album
%format "f_radio" "%08d%s (%s)" length filename title %strip = "15"
%format "f_radio_old" "%06d%s (%s)" lastplayed filename title %sort = "inverse" %strip = "13"
%format “f_podcast_album” “%s” album ? genre == “podcast”
%format “f_podcast_title” “%s %s – %02d:%02d” basename title Lm Ls %sort = “inverse” %strip = “15” ? genre == “podcast”
%format “f_podcast_alphanum_title” “%s – %02d:%02d (%s)” basename Lm Ls filename ? title == “” & genre == “podcast”
%format “f_podcast_alphanum_title” “%s – %02d:%02d” title Lm Ls & genre == “podcast”
# Basic format declarations

%menu_start “meta_menu" “Metabase”
“Artist” -> artist ? genre != “podcast” -> title = "f_browse"cast” & genre != “audiobook” -> album -> title = “f_title” ? genre != “podcast” -> title = "f_browse"
“Album Artist” -> albumartist ? genre != “podcast” -> title = "f_browse"cast” & genre != “audiobook” -> album -> title = “f_title” ? genre != “podcast” -> title = "f_browse"
“Album” -> album ? genre != “podcast” -> title = "f_browse"cast” & genre != “audiobook” -> title = “f_title” ? genre != “podcast” -> title = "f_browse"
“Genre” -> genre -> artist -> album -> title = “f_title” ? genre != “podcast” -> title = "f_browse"
“Composer” -> composer -> album -> title = “f_title” ? genre != “podcast” -> title = "f_browse"
“Track” -> title = “f_alphanum_title” ? genre != “podcast” -> title = "f_browse"
“Year” -> year ? year > “0” -> artist -> album -> title = “f_title” ? genre != “podcast” -> title = "f_browse"
“User Rating” -> rating -> title = “f_browse"
“Recently Added” -> album ? entryage < “4” & commitid > “0” -> title = “f_browse"

%menu_start “broadcast” “Broadcasts”
“Audiobooks” -> album ? genre == “audiobook” -> title = “f_title” ? genre == “audiobook”” -> title = "f_browse"
"New Radio" -> title = "f_radio" ? filename ~ "/radio/" & playcount == "0"” -> title = "f_browse"
"Old Radio" -> title = "f_radio_old" ? filename ~ "/radio/" & playcount != "0"” -> title = "f_browse"
“New Podcasts” -> album ? genre == “podcast” -> title = “f_podcast_title” ? playcount == “0” & genre == “podcast”” -> title = "f_browse"
“Old Podcasts” -> album ? genre == “podcast” -> title = “f_podcast_title” ? playcount != “0” & genre == “podcast”” -> title = "f_browse"

%menu_start "other" "other"
"find file"    -> title ? filename ~ "" -> title = f_browse
"ogg"          -> album ? filename $ ".ogg" -> title = f_browse
"not mp3/ogg"  -> album ? filename !$ ".ogg" & filename !$ ".mp3"  -> title = "f_browse
"low Bitrate"  -> title = "%03d %s" bitrate title %sort = "inverse" ? bitrate < "128"
"high Bitrate" -> title = "%03d %s" bitrate title ? bitrate > "256"
"bad year"     -> title = "%04d %s" year title ? year > "0" & year < "1960"

%menu_start "custom" "Rockbox Browser"
"Metadata" ==> "meta_menu"
"Other"  ==> "other"
“Broadcasts” ==> “broadcast”

#This ensures that, rather than being accessed via the 'Custom...' entry in the default Database view, this custom menu *is* the default menu

#%root_menu "bascule"

#EOF

--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version