This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#6084 - Show playlist entries' Titles (instead of file names)
Attached to Project:
Rockbox
Opened by Mike Miller (mikeage) - Thursday, 28 September 2006, 16:45 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Sunday, 05 August 2007, 10:02 GMT+2
Opened by Mike Miller (mikeage) - Thursday, 28 September 2006, 16:45 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Sunday, 05 August 2007, 10:02 GMT+2
|
DetailsThis patch allows one to view the current playlist by title and "title (album)" in addition to file name and full path.
Three major notes, and one minor note: 1. It's slow to load -- don't know why 2. If dircache and tagcache's load to ram are not enabled, it returns garbage. My quick perusal of the tagcache code suggests that this should not happen, but it does. I don't know why. 3. It increases the config file version, so you may need to clear settings (since the display format is now 2 bits instead of 1). 4. The strings only exist in the english language file. I didn't test any other languages (I'm too afraid of getting stuck in a weird menu somewhere <g>) If anyone can help fix these, I'd like to know how. |
This task depends upon
Closed by Jonathan Gordon (jdgordon)
Sunday, 05 August 2007, 10:02 GMT+2
Reason for closing: Out of Date
Additional comments about closing: and probably would be rejected anyway if it makes the viewer slow
Sunday, 05 August 2007, 10:02 GMT+2
Reason for closing: Out of Date
Additional comments about closing: and probably would be rejected anyway if it makes the viewer slow
2. Currently tagcache_fill_tags(...) function is intended to work only when tagcache is loaded to ram because it would be a slow thing to do otherwise. But I can fix the tagcache code so that it will always work, but it will be very slow for big playlists.
3. That should be ok.
4. Language seems to be handled correctly also.
5. You should fix the patch so that entries point to the same directory level.
Not this way:
--- ../../rockbox-daily-20060927.ref/apps/lang/english.lang 2006-09-27 07:00:45.000000000 +0300
+++ ./lang/english.lang 2006-09-28 14:11:06.000000000 +0300
But that way:
--- apps/lang/english.lang 2006-09-27 07:00:45.000000000 +0300
+++ apps/lang/english.lang 2006-09-28 14:11:06.000000000 +0300
You can just use the command: cvs diff -u
Thanks for the response.
1. Is there any easy way to fix this?
2. Is there a way I can detect if TagCache in RAM / dircache are enabled? Alternatively, is there a better API for me to use?
3. Was just an FYI
4. Yep.. I noticed that it defaults to English
5. I did that because I run the patch from within the rockbox directory. I'll modify it, though, if that's the standard for rockbox patches.
5. You should fix the patch so that entries point to the same directory level.
Oh, and in my previous comment, I accidently pasted Miika's #5 below my #5 response. Please ignore that :)
static struct tagcache_search tcs;
...
if (!tagcache_find_index(&tcs, filename))
return error;
idxid = tcs.idx_id;
tagcache_search_finish(&tcs);
if (!tagcache_search(&tcs, tag_album))
error..
if (tagcache_retrieve(&tcs, idxid, buffer, buffer_length))
{
/* buffer = the search results */
}
tagcache_search_finish(&tcs);
That said, in the patch I made, do you have any thoughts on why TagCache occasionally returns garbage (or, at least, the string is populated with garbage)? All songs have the same data... usually a few bytes (1-3) of non printable characters, and it's the same for all files. It tends to happen when I play around with the tagcache settings, although I also saw it once when I changed the language (not sure how that could've happened).
Has this completely ground to a halt?
Also... just for reference, I don't see why loading tagcache from disk would be obstructively slow. Surely it's just got to read the file, not rebuild the database?
I haven't pursued this lately, since I have no idea why I often get garbage in the tagcache struct (from tagcache_fill_tags), although it returns true. Maybe Miika has an idea why...
It had a problem which I don't quite understand: tagcache_fill_tags returns an ok status, but it fills the fields with garbage (every track gets the same gibberish).
It works nicely now (new patch attached that replaces the "full path" view with the tagcache derived view).
It's still slow, and search doesn't work. I have to think about where to go from here.
Maybe, this could be merged with the actual Database view root "menu", allowing you to view "Current Playlist" based on tag info, and the configuration of this view could be user adjustable (to allow for Artist - Title / Tile / Title(Album) / Filename etc).
Thanks for keeping an eye on this one Mike.
* enable TagCache
* configure it to load to RAM
* wait for it to finish loading
By the way, I use the simulator with the latest svn since I have an iPod 80GB 5.5g and am waiting for a running rockbox version. In the latest svn version I don't any longer find the option to use full path in the playlist context menu, but only in the general settings menu. Is that correct?