This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#5179 - Playlist Catalog
|
DetailsThis is the playlist catalog by Sebastian Henriksen that was introduced somewhere around h1x0 forum and sourceforge, updated to 19.4.06 cvs.
to install: copy playlist_catalog.c, playlist_catalog.h to your rockbox/apps folder, and patch the playlist_catalog_new file (using $ patch -p0 > playlist_catalog_new) |
This task depends upon
Closed by Linus Nielsen Feltzing (linusnielsen)
Tuesday, 18 July 2006, 15:56 GMT+2
Reason for closing: Accepted
Tuesday, 18 July 2006, 15:56 GMT+2
Reason for closing: Accepted
1. All playlists must now be in one directory. The default directory is /Playlists but this can be changed by creating the file /.rockbox/playlist_catalog_config and adding the line "dir:/my/playlist/path name". All related add to/remove from playlist catalog options have been removed from the gui.
2. Only the most recently modified playlist is remembered and placed at the top of the list. All other playlists are ordered based on the file tree configuration.
3. Removed most of the duplicated code when inserting directories (required modifications to playlist code as well)
4. All onplay functionality is available when "View playlists" is selected.
One change I didn't make was to move to the gui_synclist_* functions when browsing the playlist. This is mainly because the menu code is working reasonably well. However, this may still be changed. Aside from this, there's still a little cleanup and documentation that needs to be done. Once that's complete, this patch should be ready for inclusion into the builds (post 3.0 of course).
NOTE: When applying the patch you no longer need to manually copy the playlist_catalag.* files, they are now a part of the patch itself.
I get the following compiler error:
playlist_catalog.c:236: error: too few arguments to function 'gui_synclist_init'
I don't know which cvs update caused this, because I stopped using patches for a while.
In playlist_catalog.c at line 236 replace
gui_synclist_init(&playlist_lists, playlist_callback_name, playlists);
with
gui_synclist_init(&playlist_lists, playlist_callback_name, playlists, false, 1);
I don't want to put up a patch myself, because I'm not sure if the fix is right (it's working for me, but not tested with remote etc.)
PS: I have a feature request for the playlist catalog:
Use the Dircache. Right now the disk has to spin up everytime I want to use the catalog.
Also there is a little grammar mistake. If no playlists exist then there is a splash message "playlists doesn't exist". It should say "don't"
The feature does use the dircache to retrieve filenames. There will be a disk access the first time it's called to determine the playlist catalog directory but there shouldn't be any afterwards (assuming the directory exists). In regards to the grammar error, that message is referring to the directory you specified in your playlist_catalog.config file (default is /Playlists). I'm guessing the error you saw was actually: "/Playlists doesn't exist".