Support and General Use > Audio Playback, Database and Playlists

tagnavi custom config - submenu items listed twice (EDIT: on Sansa Clip+)

(1/1)

TruckDrivinFool:
Hello dear rockboxers. I searched but couldn't find an answer to my question, and can't see what I'm doing wrong. I haven't got the database to the state I want it yet, but came across this issue and wanted to understand it before working further on tagnavi_custom.config. The problem is that in my custom database, under "A to Z..." the options I want are repeated twice. So it looks like this:


--- Quote ---A to Z...
   Artists
   Albums
   Tracks
   Artists
   Albums
   Tracks
--- End quote ---

Then within each of these, the alphabetic list is repeated twice, so:


--- Quote ---Artist A to Z
   Numeric
   A
   B
   ...
   Z
   Numeric
   A
   ...
--- End quote ---

And here is my tagnavi_custom.config text:


--- Code: ---#! rockbox/tagbrowser/2.0
# ^ Version header must be the first line of every file

# Basic format declarations
%format "fmt_title"       "%s - %02d:%02d (%s)" basename Lm Ls filename ? title == "<Untagged>"
%format "fmt_title"       "%d.%02d. %s - %02d:%02d" discnum tracknum title Lm Ls ? discnum > "0"
%format "fmt_title"       "%02d. %s - %02d:%02d" tracknum title Lm Ls ? tracknum > "0"
%format "fmt_title"       "%s - %02d:%02d" title Lm Ls

#
# === 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 = "fmt_title"
"A"   -> artist ? artist ^ "A" -> album  -> title = "fmt_title"
"B"   -> artist ? artist ^ "B" -> album  -> title = "fmt_title"
"C"   -> artist ? artist ^ "C" -> album  -> title = "fmt_title"
"D"   -> artist ? artist ^ "D" -> album  -> title = "fmt_title"
"E"   -> artist ? artist ^ "E" -> album  -> title = "fmt_title"
"F"   -> artist ? artist ^ "F" -> album  -> title = "fmt_title"
"G"   -> artist ? artist ^ "G" -> album  -> title = "fmt_title"
"H"   -> artist ? artist ^ "H" -> album  -> title = "fmt_title"
"I"   -> artist ? artist ^ "I" -> album  -> title = "fmt_title"
"J"   -> artist ? artist ^ "J" -> album  -> title = "fmt_title"
"K"   -> artist ? artist ^ "K" -> album  -> title = "fmt_title"
"L"   -> artist ? artist ^ "L" -> album  -> title = "fmt_title"
"M"   -> artist ? artist ^ "M" -> album  -> title = "fmt_title"
"N"   -> artist ? artist ^ "N" -> album  -> title = "fmt_title"
"O"   -> artist ? artist ^ "O" -> album  -> title = "fmt_title"
"P"   -> artist ? artist ^ "P" -> album  -> title = "fmt_title"
"Q"   -> artist ? artist ^ "Q" -> album  -> title = "fmt_title"
"R"   -> artist ? artist ^ "R" -> album  -> title = "fmt_title"
"S"   -> artist ? artist ^ "S" -> album  -> title = "fmt_title"
"T"   -> artist ? artist ^ "T" -> album  -> title = "fmt_title"
"U"   -> artist ? artist ^ "U" -> album  -> title = "fmt_title"
"V"   -> artist ? artist ^ "V" -> album  -> title = "fmt_title"
"W"   -> artist ? artist ^ "W" -> album  -> title = "fmt_title"
"X"   -> artist ? artist ^ "X" -> album  -> title = "fmt_title"
"Y"   -> artist ? artist ^ "Y" -> album  -> title = "fmt_title"
"Z"   -> artist ? artist ^ "Z" -> album  -> title = "fmt_title"

# ^ 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 = "fmt_title"
"A"   -> album ? album ^ "A" ->  title = "fmt_title"
"B"   -> album ? album ^ "B" ->  title = "fmt_title"
"C"   -> album ? album ^ "C" ->  title = "fmt_title"
"D"   -> album ? album ^ "D" ->  title = "fmt_title"
"E"   -> album ? album ^ "E" ->  title = "fmt_title"
"F"   -> album ? album ^ "F" ->  title = "fmt_title"
"G"   -> album ? album ^ "G" ->  title = "fmt_title"
"H"   -> album ? album ^ "H" ->  title = "fmt_title"
"I"   -> album ? album ^ "I" ->  title = "fmt_title"
"J"   -> album ? album ^ "J" ->  title = "fmt_title"
"K"   -> album ? album ^ "K" ->  title = "fmt_title"
"L"   -> album ? album ^ "L" ->  title = "fmt_title"
"M"   -> album ? album ^ "M" ->  title = "fmt_title"
"N"   -> album ? album ^ "N" ->  title = "fmt_title"
"O"   -> album ? album ^ "O" ->  title = "fmt_title"
"P"   -> album ? album ^ "P" ->  title = "fmt_title"
"Q"   -> album ? album ^ "Q" ->  title = "fmt_title"
"R"   -> album ? album ^ "R" ->  title = "fmt_title"
"S"   -> album ? album ^ "S" ->  title = "fmt_title"
"T"   -> album ? album ^ "T" ->  title = "fmt_title"
"U"   -> album ? album ^ "U" ->  title = "fmt_title"
"V"   -> album ? album ^ "V" ->  title = "fmt_title"
"W"   -> album ? album ^ "W" ->  title = "fmt_title"
"X"   -> album ? album ^ "X" ->  title = "fmt_title"
"Y"   -> album ? album ^ "Y" ->  title = "fmt_title"
"Z"   -> album ? album ^ "Z" ->  title = "fmt_title"

# Define the A to Z track sub menu
%menu_start "custom_track" "Track A to Z"
"Numeric"   -> title ? title < "A" ->  title = "fmt_title"
"A"   -> title ? title ^ "A" ->  title = "fmt_title"
"B"   -> title ? title ^ "B" ->  title = "fmt_title"
"C"   -> title ? title ^ "C" ->  title = "fmt_title"
"D"   -> title ? title ^ "D" ->  title = "fmt_title"
"E"   -> title ? title ^ "E" ->  title = "fmt_title"
"F"   -> title ? title ^ "F" ->  title = "fmt_title"
"G"   -> title ? title ^ "G" ->  title = "fmt_title"
"H"   -> title ? title ^ "H" ->  title = "fmt_title"
"I"   -> title ? title ^ "I" ->  title = "fmt_title"
"J"   -> title ? title ^ "J" ->  title = "fmt_title"
"K"   -> title ? title ^ "K" ->  title = "fmt_title"
"L"   -> title ? title ^ "L" ->  title = "fmt_title"
"M"   -> title ? title ^ "M" ->  title = "fmt_title"
"N"   -> title ? title ^ "N" ->  title = "fmt_title"
"O"   -> title ? title ^ "O" ->  title = "fmt_title"
"P"   -> title ? title ^ "P" ->  title = "fmt_title"
"Q"   -> title ? title ^ "Q" ->  title = "fmt_title"
"R"   -> title ? title ^ "R" ->  title = "fmt_title"
"S"   -> title ? title ^ "S" ->  title = "fmt_title"
"T"   -> title ? title ^ "T" ->  title = "fmt_title"
"U"   -> title ? title ^ "U" ->  title = "fmt_title"
"V"   -> title ? title ^ "V" ->  title = "fmt_title"
"W"   -> title ? title ^ "W" ->  title = "fmt_title"
"X"   -> title ? title ^ "X" ->  title = "fmt_title"
"Y"   -> title ? title ^ "Y" ->  title = "fmt_title"
"Z"   -> title ? title ^ "Z" ->  title = "fmt_title"

# 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 "same as current" sub menu
%menu_start "same" "Same as current"
"Directory" -> title ? filename ^ "#directory#"
"Title" -> title = "fmt_title" ? title = "#title#"
"Artist" -> album ? artist = "#artist#" -> title  = "fmt_title"
"Album" -> title = "fmt_title" ? album = "#album#"

#
# === Begin of main menu
#

# Define the title of the main menu
%menu_start "sibisalo" "My Database"
"Artist"   -> artist   -> album  -> title = "fmt_title"
"Album Artist"   -> albumartist   -> album  -> title = "fmt_title"
"Album"    -> album    -> title = "fmt_title"
"Genre"    -> genre    -> artist -> album -> title = "fmt_title"
"A to Z..." ==> "a2z"
"Same as current..." ==> "same"
"Custom view..."  ==> "custom"

#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 "sibisalo"

# EOF
--- End code ---

I think the code from the tagnavi.config is the one causing the doubling, but I'm not sure. This behavior is happening within the "Same as current..." submenu as well.

Thank you, kind and noble rockboxers, for any advice you have for me, your most humble servant...

TruckDrivinFool:
I figured it out.

The "A to Z..." and "Same as current..." submenu items were repeated because the names of both of these menus were the same in my tagnavi_custom.config as they are in tagnavi_custom. Namely "a2z" and "same". Changing the name of these menus in tagnavi_custom.config to "custom_a2z" and "custom_same" prevented those menu definitions in tagnavi.config from being called and doubling my own entries. I guess I could have called them anything as long as they were different from the ones mentioned above. Tagnavi.config was also adding "Composer" as a submenu item to "Same as current...", while I had done away with that option in my tagnavi_custom.config.

To me, what's partly confusing is that some of the menus in the tagnavi.config file have "custom" in the name (i.e. custom_artist, custom_album, custom_track). This is confusing because tagnavi.config is not actually a "custom" file, so having that term there makes it less easy to glean that there's a need to maintain a separation between menu names from one tagnavi file to the other.

Ahh, no one ever helps us servants anyway...

TruckDrivinFool:
Having solved this problem, I thought I'd found my perfect music setup after years of iPod use. But then yesterday I noticed the microSD disk access sound at the beginning of every track change, sounds electromagnetic interference. Volume setting doesn't affect it, and given that I usually listed to music at low volumes it's very noticeable. I don't imagine there's a fix for that one. Strange that such a totally crappy element slips into what is otherwise such a great configuration -- Sansa Clip Plus with Rockbox. Oh well.

Navigation

[0] Message Index

Go to full version