Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  bookmarks? if you use them read this!
« previous next »
  • Print
Pages: [1] 2

Author Topic: bookmarks? if you use them read this!  (Read 11376 times)

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
bookmarks? if you use them read this!
« on: August 11, 2008, 11:42:26 AM »
I want to work on bookmarks again but I'm a bit stuck...

(bare with me if you know this already...)
Rockbox has 3 different types of internal playlists, each with their own quirks...
dirplay - play the contents of one folder (shuffled or not)
m3u - playlist from a file
inram - everything else, any playlist that you modify, change the track order, add, remove tracks, etc... (this include databse playlists)

now, from my quick test, the current bookmark stuff wont even let me create a bookmark from an inram playlist... So I want to fix this...

my problem is choosing where to save the bmark file to.
If its a dirplay or m3u8 playlist then we can save it as <foldername>.bmark or <playlistname>.bmark in the same folder as the dir or m3u (current behaviour)
database playlists? inram playlists? (from the playlist POV there is no difference between these, but there should be... thats something for later though). I'm thinking we could store it in /bookmarks/ and show the keyboard so the user can choose a name? as long as the resume point is stored straight away then any delay naming the file wont cause an issue with the wrong point being saved. Then that begs the question, why not save all bookmarks in the one folder and then we can replace the "recent bookmarks" screen with a file browser pointing to the right folder?

how does that sound?

Also, while we are here... if you have any suggestions for bookmarks.. now is the time to mention them...
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline soap

  • Member
  • *
  • Posts: 1678
  • Creature of habit.
Re: bookmarks? if you use them read this!
« Reply #1 on: August 11, 2008, 11:55:47 AM »
Quote from: JdGordon on August 11, 2008, 11:42:26 AM
... Then that begs the question, why not save all bookmarks in the one folder and then we can replace the "recent bookmarks" screen with a file browser pointing to the right folder?

Pretty please?   :-*
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way

Offline pondlife

  • Developer
  • Member
  • *
  • Posts: 248
Re: bookmarks? if you use them read this!
« Reply #2 on: August 11, 2008, 02:27:51 PM »
I already posted on the ML, but this might be a better place...

I don't know the innards, but I thought Rockbox only had two types of playlist:
- dynamic (inram and dirplay, stored in .playlist_control as a set of instructions on how to recreate the playlist)
- saved (stored in .m3u file)

Could bookmarks be incorporated entirely into the playlist storage?  Without the corresponding playlist, a bookmark isn't much use.

I'm personally against having a centralised store of bookmarks.  Better, I feel, to avoid "special" directories (outside of .rockbox).   If integrated it would make it simple to move playlists and their corresponding bookmarks from device to PC to device.

pondlife
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: bookmarks? if you use them read this!
« Reply #3 on: August 11, 2008, 04:21:31 PM »
As I proposed earlier bookmarks could be included in the playlist itself -- with extm3u there's a way adding own data to the playlist file. From my information this won't create any incompatible file format (though I haven't checked up to now) and it would also allow a more simplified handling.

There is of course the chance that opening such a bookmark-ized playlist in a different player will loose the bookmark information upon re-saving it. OTOH, having a bookmark format that includes the playlist doesn't sound like a nicer solution to me.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: bookmarks? if you use them read this!
« Reply #4 on: August 11, 2008, 08:20:13 PM »
Quote from: pondlife on August 11, 2008, 02:27:51 PM
- dynamic (inram and dirplay, stored in .playlist_control as a set of instructions on how to recreate the playlist)
aparently they are handled slightly differently (at least from the current bookmark POV...


Quote from: pondlife on August 11, 2008, 02:27:51 PM
Could bookmarks be incorporated entirely into the playlist storage?  Without the corresponding playlist, a bookmark isn't much use.

adding resume info to a m3u means that loading will be much slower usually... the .playlistcontorl file can rebuild a playlist very quickly
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: bookmarks? if you use them read this!
« Reply #5 on: August 12, 2008, 01:54:28 AM »
I'm not keen on bookmarks being incorporated into the actual playlist file, but I do think they should be saved to the same folder as the playlist catalogue, so that they can be managed together.
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline pondlife

  • Developer
  • Member
  • *
  • Posts: 248
Re: bookmarks? if you use them read this!
« Reply #6 on: August 12, 2008, 03:06:45 AM »
Quote from: JdGordon on August 11, 2008, 08:20:13 PM
Quote from: pondlife on August 11, 2008, 02:27:51 PM
Could bookmarks be incorporated entirely into the playlist storage?  Without the corresponding playlist, a bookmark isn't much use.

adding resume info to a m3u means that loading will be much slower usually... the .playlistcontorl file can rebuild a playlist very quickly

No, I meant to continue using playlist_control, just to use the same mechanism for bookmark resume and "normal" resume.

Also, the bookmark doesn't have to be stored in the same file as a playlist - it's more a clarification that a bookmark is always a reference into a playlist, not necessarily a directory (i.e. bring the database and saved playlists into parity).  Alongside the playlist would be fine by me too.

One problem is maintaining the current per-directory auto-saved bookmarks.  This would be an extension of the basic system, on the assumption that a bmark file with no corresponding playlist means "create a playlist for the containing directory".

pondlife
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: bookmarks? if you use them read this!
« Reply #7 on: August 12, 2008, 04:59:01 AM »
code is now working to load and save .bmark files from the playlist control.... so we really need to get some consensus on how to name them....
he who yells loudest gets his way....
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline pabouk

  • Member
  • *
  • Posts: 387
Re: bookmarks? if you use them read this!
« Reply #8 on: August 12, 2008, 05:59:03 AM »
Quote from: JdGordon on August 11, 2008, 11:42:26 AM
...database playlists? inram playlists? (from the playlist POV there is no difference between these, but there should be... thats something for later though). I'm thinking we could store it in /bookmarks/ and show the keyboard so the user can choose a name? as long as the resume point is stored straight away then any delay naming the file wont cause an issue with the wrong point being saved.
What about configuring the database playlist bookmark names in the tagnavi.config file? The file name could consist of a constant part and a variable part containing the database query parameters. To identify multiple bookmarks of the same query there could be a serial number or time in the filename.

Quote from: JdGordon on August 11, 2008, 11:42:26 AM
Then that begs the question, why not save all bookmarks in the one folder and then we can replace the "recent bookmarks" screen with a file browser pointing to the right folder
I am not against using a single directory but sub-directories should be used as flat structure for storing bookmarks could be pretty messy.
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: bookmarks? if you use them read this!
« Reply #9 on: August 12, 2008, 06:03:43 AM »
Quote from: pabouk on August 12, 2008, 05:59:03 AM
What about configuring the database playlist bookmark names in the tagnavi.config file? The file name could consist of a constant part and a variable part containing the database query parameters. To identify multiple bookmarks of the same query there could be a serial number or time in the filename.
not really possible.. there is currently no way to know if its a batabase list, or just a random bunch of files... also I dont like that idea much... if its from the db the search path shold be used when possible (which is not currently)
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: bookmarks? if you use them read this!
« Reply #10 on: August 14, 2008, 11:22:06 AM »
not getting much input on the dev list so ill try here also (and yes im going to get told off for posting a patch here instead of the tracker.... tough! its not ready yet...)

please try out the attached patch. your old bmark files WONT work... and actually the only thing that does at the moment is creating bookmarks in the wps context menu, and loading .bmark files in the file browser...

One important thing...
if the name of the current playlist cant be determined (i.e its not dirplay or m3u) it creates a numbered /bookmark_*.bmark file which you can go and rename later (unless someone comes up with a better way to name them?)
* bmark.2.txt (16.85 kB - downloaded 257 times.)
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: bookmarks? if you use them read this!
« Reply #11 on: August 17, 2008, 08:12:04 AM »
I'm sorry for being late to the party (I've been away) and I'll admit right now I haven't tried the patch - but does the recent bookmarks entry still exist in the main menu with this?  It is a feature I use all the time and I would be very sorry to see it go.

Apologies if this is a non-concern!
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: bookmarks? if you use them read this!
« Reply #12 on: August 17, 2008, 08:38:17 AM »
yes, it will stay, in some undecided form....
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: bookmarks? if you use them read this!
« Reply #13 on: September 16, 2008, 05:35:37 AM »
moving this to the tracker as its almost fully working... http://www.rockbox.org/tracker/task/9407

If you use bookmarks please let me know whay I've broken from the old behavior.
things are that not yet converted:
- autoload (not sure how this is supposed to work...)
- recent bookmarks
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: bookmarks? if you use them read this!
« Reply #14 on: September 22, 2008, 10:57:36 AM »
bmark.6.diff on the tracker is where im sort of stuck at now (should still be in sync with svn...)
automload is working..

I'm completely stuffed as to what to do about the recent bookmark list. Because the .bmark actually has to be loaded before it can be displayed, if we want to show the track title and the resume position in the recent list we need to waste a fair bit of ram storing track title, .bmark filename, resume point (~500 bytes each!)
Now we can do this, but thats quiet a bit of waste for people who dont use bookmarks (yes it can be allocated at boot but thats a bit annoying also)

One option is to only save the .bmark filename and only have a list of them, then selecting one would load it and display the resume points in it... good enough?

I need suggestions.... (also testers for the actual WIP patch..)
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  bookmarks? if you use them read this!
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.114 seconds with 15 queries.