Rockbox Technical Forums

Rockbox General => Rockbox General Discussion => Topic started by: Toxikator on September 21, 2007, 07:48:56 PM

Title: Disabling auto-numbering
Post by: Toxikator on September 21, 2007, 07:48:56 PM
I've got a problem where Rockbox keeps adding tracknumbers to files because there are numbers in the filenames; I don't want this behaviour.

I've got an audiobook, see, and there are 137 tracks. Thing of it is, Rockbox's sort goes out of whack if there are more than 99 tracks (it sorts 100 after 10...) so I can't use ACTUAL track numbering to do it.

Because it's an audiobook, though, there are no track "titles" so I can simply title the tracks "001", "002", etc... and not have to worry about setting up the database to support 3 digit track numbers for this one book.

Problem is, Rockbox sees these filenames and automatically imagines up a tracknumber for the database; and AFAICT there's no way to turn this off. Am I missing something? Or will I be relegated to numbering them all "00." and letting them sort by title after the fact?
Title: Re: Disabling auto-numbering
Post by: Toxikator on September 21, 2007, 08:43:59 PM
lol a forum search reveals that I actually had this same problem a WHILE back, but I never got to the bottom of it..?

According to the Wiki, "Tracknum"'s origin is from "id tag/from filename"...

Is there some alternative to "Tracknum", then, that ISN'T from filename?

I guess thats the question.

And if not, is there a way to trick it? I don't care what the files are named...
Title: Re: Disabling auto-numbering
Post by: polygonal on September 21, 2007, 10:39:08 PM
The database is customizable. You can have it sort by 3-digit tracknum or 6-digit tracknum or whatever you want. In your case, I guess you can just have the database sort by title. see http://www.rockbox.org/twiki/bin/view/Main/DataBase
Title: Re: Disabling auto-numbering
Post by: Toxikator on September 22, 2007, 08:49:27 AM
I don't want the db to sort by title ALL the time, just in instances where there are no tracknumbers. But if the filename has numbers in it, rockbox imagines up a tracknumber and sticks it in. I was hoping I could turn this off, but I can't, so I just renamed the files to a sequence of letters with no digits whatsoever in hopes of getting rid of this "feature".

It worked.
Title: Re: Disabling auto-numbering
Post by: Llorean on September 23, 2007, 02:42:00 AM
I'm pretty sure that getting the tracknumber from the filename was removed some time ago. Can you verify absolutely, and with testing, that it does this, and have you verified that there's nothing in your tagnavi that could be fouling things up?

And please refer to the database as "the database" and not "the db." It's just a few more letters, and as dB refers to decibels specifically, as it is a unit of measurement, you should use the proper term.
Title: Re: Disabling auto-numbering
Post by: Toxikator on September 23, 2007, 03:31:06 PM
changing filenames from Track001, Track002 to "aa", "ab", "ac", etc. fixed it. so yeah, I'd say it's still there.
Title: Re: Disabling auto-numbering
Post by: roolku on September 23, 2007, 05:48:52 PM
I'm pretty sure that getting the tracknumber from the filename was removed some time ago.

Nope, it is still there: line 1671 onwards in tagcache.c (r14835). The fact is flagged, but I can't find anywhere where the flag is used.

Title: Re: Disabling auto-numbering
Post by: Llorean on September 24, 2007, 04:36:56 PM
The whole point of Tagcache is to *only* used metadata. This should certainly be removed then shouldn't it?