Rockbox Technical Forums

Support and General Use => Audio Playback, Database and Playlists => Topic started by: AliasDanny on May 03, 2013, 11:19:29 PM

Title: [Clip Zip] Song Number Problem
Post by: AliasDanny on May 03, 2013, 11:19:29 PM
The Database just skips from "05." to "1.09.", then to "1.922." then back to "11." when I want it to be "5.", then "9.", then "11.", then a bunch of songs in between, then "922."

What's the problem? I changed the metadata over again, and it still didn't work. Could it be different metadata types? Yikes.

Another problem: it would skip from "32." to "320." and back to "41." Can the Database actually sort song numbers correctly past 99? What do I have to do?
Title: Re: [Clip Zip] Song Number Problem
Post by: saratoga on May 03, 2013, 11:36:58 PM
The default tagnavi file only zero pads out to two digits, probably because that is the most allowed on an audio CD.  If you want 3 digit sorting, you can copy:

/.rockbox/tagnavi.config

to

/.rockbox/tagnavi_custom.config

and then change instances of "%02d" to "%03d" so that strings are zero padded to 3 digits for sorting.

More info:  http://www.rockbox.org/wiki/DataBase
Title: Re: [Clip Zip] Song Number Problem
Post by: AliasDanny on May 04, 2013, 01:32:24 AM
Uh oh. It didn't work. I didn't have a tagnavi_custom.config originally, so I copied the tagnavi.config and did the change. Didn't work. I tried moving tagnavi.config out of the .rockbox folder. Still didn't work.
Title: Re: [Clip Zip] Song Number Problem
Post by: hdfhdfgdfgdf43 on May 12, 2013, 03:33:38 AM
The default tagnavi file only zero pads out to two digits, probably because that is the most allowed on an audio CD.  If you want 3 digit sorting, you can copy:

/.rockbox/tagnavi.config

to

/.rockbox/tagnavi_custom.config

and then change instances of "%02d" to "%03d" so that strings are zero padded to 3 digits for sorting.

More info:  http://www.rockbox.org/wiki/DataBase


Hi,

I tried that, but now my Clip Zip doesn't boot.
It's stuck in a loop, and I can't even connect it through USB, because it doesn't get recognized.
Title: Re: [Clip Zip] Song Number Problem
Post by: AliasDanny on May 12, 2013, 07:44:00 PM
The default tagnavi file only zero pads out to two digits, probably because that is the most allowed on an audio CD.  If you want 3 digit sorting, you can copy:

/.rockbox/tagnavi.config

to

/.rockbox/tagnavi_custom.config

and then change instances of "%02d" to "%03d" so that strings are zero padded to 3 digits for sorting.

More info:  http://www.rockbox.org/wiki/DataBase


Hi,

I tried that, but now my Clip Zip doesn't boot.
It's stuck in a loop, and I can't even connect it through USB, because it doesn't get recognized.
Same thing happened to me but I managed to rescue the thing.

Hold down your volume buttons when you boot your Clip Zip. You will go back into the Sansa firmware. Go to Settings > System Settings > USB Mode. Select MSC. Then your computer should be able to read the player and let you roll back the changes.

Hope that helps!
Title: Re: [Clip Zip] Song Number Problem
Post by: hdfhdfgdfgdf43 on May 13, 2013, 04:51:19 AM
I figured that out, but in my case I had to press the Left button while booting.

By the way, I edited tagnavi.config and made the changes suggested by saratoga, but it didn't fix the problem for me.
Basically, my problem is that in the folder I have:
101
102
103
...
201
202
203
...

but in the database, it will be ordered like this:
101
201
102
202
103
203
...
Title: Re: [Clip Zip] Song Number Problem
Post by: saratoga on May 13, 2013, 05:03:47 PM
If you don't post a copy of what you did, there is probably no way anyone can help you...
Title: Re: [Clip Zip] Song Number Problem
Post by: hdfhdfgdfgdf43 on May 13, 2013, 07:45:51 PM
If you don't post a copy of what you did, there is probably no way anyone can help you...

If you mean the boot problem, I already solved it.
If it's about that config file, I did exactly what you suggested on your previous post.

files in the album folder:
101-title1.flac
102-title2.flac
201-title3.flac
202-title4.flac

how it shows in database inside album:
001. title1
001. title3
002. title2
002. title4
Title: Re: [Clip Zip] Song Number Problem
Post by: saratoga on May 14, 2013, 10:10:11 PM
I mean the tagnavi file.  Thats what you're asking for help with right?  You still haven't actually posted what you did so its impossible for me to give you any suggestions . . .
Title: Re: [Clip Zip] Song Number Problem
Post by: hdfhdfgdfgdf43 on May 14, 2013, 11:57:31 PM
On # Basic format declarations
where you see "%03d" it used to be "%02d"

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

# Tag Browser configuration file, do not edit as changes will be lost!
# Instead, you can modify "/.rockbox/tagnavi_custom.config" which will never
# get overwritten automatically.

# Basic format declarations
%format "fmt_title"       "%s - %03d:%03d (%s)" basename Lm Ls filename ? title == "<Untagged>"
%format "fmt_title"       "%d.%03d. %s - %03d:%03d" discnum tracknum title Lm Ls ? discnum > "0"
%format "fmt_title"       "%03d. %s - %03d:%03d" tracknum title Lm Ls ? tracknum > "0"
%format "fmt_title"       "%s - %03d:%03d" title Lm Ls
%format "fmt_alphanum_title" "%s - %03d:%03d (%s)" basename Lm Ls filename ? title == "<Untagged>"
%format "fmt_alphanum_title" "%s - %3d:%03d" title Lm Ls
%format "fmt_mostplayed" "%2d|%3d %s (%s)" playcount autoscore title artist %sort = "inverse" %limit = "100"
%format "fmt_lastplayed"  "%06d%s - %s" lastplayed artist title %sort = "inverse" %limit = "99" %strip = "6"
%format "fmt_forgotten"  "%06d%s - %s" lastplayed artist title %limit = "99" %strip = "6"
%format "fmt_best_tracks" "%03d. %s (%3d)" tracknum title autoscore
%format "fmt_score"       "(%3d) %s-%s" autoscore title artist
%format "fmt_rating"       "(%2d) %s-%s" rating title artist %sort = "inverse"

# Include our custom menu
%include "/.rockbox/tagnavi_custom.config"

#
# === 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 search sub menu
%menu_start "search" "Search by..."
"Artist" -> artist ? artist ~ "" -> album -> title = "fmt_title"
"Album Artist" -> albumartist ? albumartist ~ "" -> album -> title = "fmt_title"
"Album" -> album ? album ~ "" -> title = "fmt_title"
"Title" -> title = "fmt_title" ? title ~ ""
"Album by year" -> album ? year = "" -> title = "fmt_title"
"Artist between years" -> artist ? year >= "" & year <= "" -> album -> title = "fmt_title"
"Album between years" -> album ? year >= "" & year <= "" -> title = "fmt_title"
"Filename" -> filename ? filename ~ ""
"Score" -> title = "fmt_score" ? autoscore > ""
"User Rating" -> title = "fmt_rating" ? rating > ""
"Comment" -> album ? comment ~ "" -> title = "fmt_title"

# 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#"
"Composer" -> title = "fmt_title" ? 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" "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"
"Composer" -> composer -> album -> title = "fmt_title"
"Track"    -> title = "fmt_alphanum_title"
"Year"     -> year ? year > "0" -> artist -> album -> title = "fmt_title"
"User Rating" -> rating -> title = "fmt_title"
"Recently Added" -> album ? entryage < "4" & commitid > "0" -> title = "fmt_title"
"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"