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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Streamline playlist handling
« previous next »
  • Print
Pages: 1 [2]

Author Topic: Streamline playlist handling  (Read 5179 times)

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Streamline playlist handling
« Reply #15 on: June 11, 2011, 04:35:54 PM »
Quote from: jim234567 on June 10, 2011, 06:02:34 PM
When I download these .m3u files into the folder on my player, they are not detected in any way when the database is initialized.

That's because the database does NOT handle playlists at all. The database basically gives you some searches of the files present based on their metadata to select from. How would a playlist fit into that?

Quote
So I have to manually navigate on the player itself (using the tiny buttons & screen) to the folder where they are (which has thousands of files & folders in it), find the first .m3u list, then load ("play") the list so that it is now loaded into the dynamic playlist memory.

Save them all in the same folder (like the root of the SD card) using relative paths. Winamp should be able to do that. Then you only need to navigate to a single folder.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline jim234567

  • Member
  • *
  • Posts: 21
Re: Streamline playlist handling
« Reply #16 on: June 11, 2011, 07:00:48 PM »
Quote from: bluebrother on June 11, 2011, 04:35:54 PM
Quote from: jim234567 on June 10, 2011, 06:02:34 PM
When I download these .m3u files into the folder on my player, they are not detected in any way when the database is initialized.

That's because the database does NOT handle playlists at all. The database basically gives you some searches of the files present based on their metadata to select from. How would a playlist fit into that?

Quote
So I have to manually navigate on the player itself (using the tiny buttons & screen) to the folder where they are (which has thousands of files & folders in it), find the first .m3u list, then load ("play") the list so that it is now loaded into the dynamic playlist memory.

Save them all in the same folder (like the root of the SD card) using relative paths. Winamp should be able to do that. Then you only need to navigate to a single folder.

You don't think Rockbox's database should be able to detect them exactly like how the Sansa firmware (and probably most others) does? Do you not think it should be easy for users to get to their playlists in RB?? Why even have "Playlists" as an option on RB's main menu at all then?  ???

Like Chronon just said, saving them to the SD's root or anywhere else does nothing to generate "/microSD1/" in the filepaths in the list in order to have a playlist work from the Playlist menu (you cannot even use < or > for a folder name in Windows anyway, so you couldn't even create a folder named that on your computer to trick Winamp into creating such a path).

You don't seem to have much concern for this issue at all... Why is that?
« Last Edit: June 11, 2011, 07:03:58 PM by jim234567 »
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Streamline playlist handling
« Reply #17 on: June 11, 2011, 07:26:05 PM »
Quote from: jim234567 on June 11, 2011, 07:00:48 PM
You don't think Rockbox's database should be able to detect them exactly like how the Sansa firmware (and probably most others) does? Do you not think it should be easy for users to get to their playlists in RB?? Why even have "Playlists" as an option on RB's main menu at all then?  ???

Please don't mix up things here. I haven't said if the database should or shouldn't do anything with playlists. I simply stated the current state. And as such it doesn't handle playlists. Also, please make the concept for picking files clear to yourself:

  • Use the file browser. In this case a dynamic playlist is generated for you on the fly. No need for any database thing: it's just a file browser like Windows Explorer.
  • Use some kind of database. A database for media files usually (as the Rockbox one does) indexes the media files based on metadata. You can then group by those metadata and search for specific entries. If you start playback from the database a dynamic playlist is generated based on the search.

Where do you put playlists in for this? A playlist has no metadata so it cannot be indexed for the database. That's simply a fact. So you end up with using a file browser to select the playlist file you want to use, and that's exactly what Rockbox does. If there really is a sensible way to "index" a playlist file please explain it to me.

So this ends up with two options left: either use the file browser that's already there. No additional code that can have bugs. Or use a file browser that's restricted to a specific folder. That's exactly what the "Playlist Catalog" does, and this is also used as shortcut when saving playlists via the Playlist Catalog. You don't need to use that, and putting some arbitrary limitation to a specific folder here would be simply nonsense.

Quote
Like Chronon just said, saving them to the SD's root or anywhere else does nothing to generate "/microSD1/" in the filepaths in the list in order to have a playlist work from the Playlist menu (you cannot even use < or > for a folder name in Windows anyway, so you couldn't even create a folder named that on your computer to trick Winamp into creating such a path).

Rockbox happily accepts playlists with relative paths. If you store the playlist in the root folder of the SD card, and the playlist entries are relative to that (or even absolute based on the drive letter Windows assigns to the SD card) it should work without any need for adjustments. I haven't tried the absolute part variant but relative paths definitely work. I used them in the past.

Quote
You don't seem to have much concern for this issue at all... Why is that?

Apart from you putting some judgement in my post that isn't there: am I supposed to have concern about that issue? Am I needed to? And is that of relevance?
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Streamline playlist handling
« Reply #18 on: June 11, 2011, 07:28:12 PM »
Quote from: jim234567 on June 11, 2011, 07:00:48 PM
You don't think Rockbox's database should be able to detect them exactly like how the Sansa firmware (and probably most others) does?

I don't know what the Sandisk firmware does, but I agree that its a bad idea to have playlists show up in the database.  That really wouldn't make very much sense at all since the purpose of the database is to generate new playlists from data stored in it.  Having it store existing playlists would be fairly pointless.

Quote from: jim234567 on June 11, 2011, 07:00:48 PM
Like Chronon just said, saving them to the SD's root or anywhere else does nothing to generate "/microSD1/"

If they're on the SD card they don't need that.
Logged

Offline jim234567

  • Member
  • *
  • Posts: 21
Re: Streamline playlist handling
« Reply #19 on: June 12, 2011, 06:29:59 PM »
Well, I see you guys are pretty adamant about this, as all you continue to  keep suggesting are workarounds for a deficiency in Rockbox's handling of playlists (at least Chronon seemed to finally catch on what the issue is)

But since you asked...

Quote
Where do you put playlists in for this? A playlist has no metadata so it cannot be indexed for the database. That's simply a fact. So you end up with using a file browser to select the playlist file you want to use, and that's exactly what Rockbox does. If there really is a sensible way to "index" a playlist file please explain it to me.
I'm only suggesting it handle it like other players do.
When it's scanning your files ("Refreshing", to use Sansa's word for it), it automatically takes any playlist file it finds, (I assume scans it and generates whatever code it needs for it internally) and then shows it under a heading called "Playlists" on it's menu where it can easily be found by the user.

With Rockbox, I have to go digging amongst thousands of files & folders to find each of my lists that are scattered about them, then go through this arduous re-saving procedure I already explained earlier to get the list to show itself under Playlists.

What it could simply do is upon finding a playlist file, it can scan it, then simply create a new file for itself the same name as the list scanned, and drop it in the Playlist folder automatically. Very simple. Then when the user opens Playlists on the main menu, he/she would see it already there, all he has to do is select it, and it will load and play.

I'm lost as to why understanding of such a basic function is so elusive here. It has nothing at all to do with the player's dynamic playlist thing, I'm talking about separate lists the user has created himself.


If no one on the RB team wishes to accommodate user's playlists, then I guess I have to join the ranks of all the others here who wish to customize their menus to get rid of useless clutter such as this "Playlists" thing, as it serves absolutely no purpose being on the menu whatsoever if I'm supposed to do it like you keep telling me to do and launch the playlist from my SD card. But from my searches of the forum, you guys also seem adamant about not wanting anyone to make the menu easier for them to use either. So I guess that one's apparently out as well.
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Streamline playlist handling
« Reply #20 on: June 12, 2011, 07:16:57 PM »
Quote from: jim234567 on June 12, 2011, 06:29:59 PM
Well, I see you guys are pretty adamant about this, as all you continue to  keep suggesting are workarounds for a deficiency in Rockbox's handling of playlists (at least Chronon seemed to finally catch on what the issue is)

We have suggested different approaches to solving your problem so that you don't have to write a patch for rockbox that does something at least some devs don't think fits well into our database scheme. I understand perfectly fine what you want to do but you don't seem to want to hear of alternate approaches to solve this so happy coding i guess.
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: Streamline playlist handling
« Reply #21 on: June 13, 2011, 01:05:39 AM »
jim234567, I do agree that some method of converting playlists containing relative paths into playlists containing absolute paths would be useful.  However, I didn't ever suggest that playlists should be indexed in the database.  If there is a way to convert the playlists to use absolute paths then you are free to move the playlists to any convenient location (like the directory you choose as the playlist catalog).  It seems like this is the change that would be of primary benefit.

The topics in this forum are purely to discuss ideas for rockbox and how to implement them.  The only way that a topic in this forum translates into a change happening in Rockbox is if somebody steps up and decides to do the work to actually implement it.  So, while you might have a list of changes you wish to see, I think it's a good idea to decouple different ideas from each other as much as possible to allow them to be implemented separately if somebody decides that one of them is worth their time and effort.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline jim234567

  • Member
  • *
  • Posts: 21
Re: Streamline playlist handling
« Reply #22 on: June 13, 2011, 01:59:13 AM »
Quote from: nls on June 12, 2011, 07:16:57 PM
We have suggested different approaches to solving your problem so that you don't have to write a patch for rockbox that does something at least some devs don't think fits well into our database scheme. I understand perfectly fine what you want to do but you don't seem to want to hear of alternate approaches to solve this so happy coding i guess.
Lol.
The approaches mentioned here are what I said I'm already doing. Kinda crazy to have a "Playlist Catalog" on the menu if it can't be used in any practical sense where you have to launch your playlists from elsewhere...
And yes, I would love to help with the development of it if I could, but unfortunately I lack the technical knowledge of it (simply trying to figure out a dang screen theme was already hard enough for me).
I figured this one would've been an easy suggestion (thinking it even could've just been an oversight), but dang was I sure proven wrong. :-[



Quote from: Chronon on June 13, 2011, 01:05:39 AM
jim234567, I do agree that some method of converting playlists containing relative paths into playlists containing absolute paths would be useful.  However, I didn't ever suggest that playlists should be indexed in the database.  If there is a way to convert the playlists to use absolute paths then you are free to move the playlists to any convenient location (like the directory you choose as the playlist catalog).  It seems like this is the change that would be of primary benefit.



Chronon, I did not mean to suggest you had said it should go in the Database itself or anywhere else, I was simply pointing out that you seemed to understand where I was coming from. Seems no one else here does though so I guess I'll just have to leave it at that.



Appreciate your time guys. I'll butt out of here 8)
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Streamline playlist handling
« Reply #23 on: June 13, 2011, 02:00:09 AM »
Quote from: jim234567 on June 12, 2011, 06:29:59 PM
I'm only suggesting it handle it like other players do.

In Rockbox generally we don't care much about how other players or especially the original firmware does things. It's this since years, so don't expect a change here.

Quote
When it's scanning your files ("Refreshing", to use Sansa's word for it), it automatically takes any playlist file it finds, (I assume scans it and generates whatever code it needs for it internally) and then shows it under a heading called "Playlists" on it's menu where it can easily be found by the user.

Rockbox does *not* scan the files. The Database indexes them, and as I explained earlier, there's no sensible way to put playlists into the Database.

Quote
With Rockbox, I have to go digging amongst thousands of files & folders to find each of my lists that are scattered about them, then go through this arduous re-saving procedure I already explained earlier to get the list to show itself under Playlists.

To put it in your words, you seem to be pretty adamant to accept that there are ways to achieve what you want. There's no need to resave all playlists, and putting all playlists on the player into a single folder is for sure a bad idea for all those people that intentionally split them across folders. So you're basically saying to make things more like the way you prefer it we should make it worse for all people that have a different approach.

While I can see that there are possibilities to improve things the suggestions you made are simply to short sighted and therefore not acceptable.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Streamline playlist handling
« Reply #24 on: June 13, 2011, 11:52:15 AM »
Quote from: jim234567 on June 13, 2011, 01:59:13 AM
Kinda crazy to have a "Playlist Catalog" on the menu if it can't be used in any practical sense where you have to launch your playlists from elsewhere...

I can't say that I'm not confused about this...The playlist catalogue is perfectly functional and does exactly what it should do. In a previous post I already explained how to move the location of the playlist catalogue with a config file entry.
In my case I make it so that the root of the device is the playlist catalogue, so that playlists saved to the root of the device "just work" and appear in the playlist catalogue as one would expect them to without any further manual intervention.


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

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: Streamline playlist handling
« Reply #25 on: June 13, 2011, 02:34:08 PM »
Quote from: jim234567 on June 13, 2011, 01:59:13 AM
Chronon, I did not mean to suggest you had said it should go in the Database itself or anywhere else, I was simply pointing out that you seemed to understand where I was coming from. Seems no one else here does though so I guess I'll just have to leave it at that.
I know.  I just wanted to clarify what I was saying. 

Don't be put off by the criticism.  Every feature that gets added to Rockbox rightly gets met with a healthy dose of criticism.  Especially for features to be added to the core binary it must be shown that the feature provides additional functionality and benefits that outweigh the costs of added binary size. 

Quote from: bluebrother on June 13, 2011, 02:00:09 AM
To put it in your words, you seem to be pretty adamant to accept that there are ways to achieve what you want. There's no need to resave all playlists, and putting all playlists on the player into a single folder is for sure a bad idea for all those people that intentionally split them across folders. So you're basically saying to make things more like the way you prefer it we should make it worse for all people that have a different approach.

While I can see that there are possibilities to improve things the suggestions you made are simply to short sighted and therefore not acceptable.
So, how about a plugin that processes playlists containing relative paths and saves a copy with absolute paths in the playlist catalog?  This makes it happen for those who opt-in only. 
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline sideral

  • Developer
  • Member
  • *
  • Posts: 48
Re: Streamline playlist handling
« Reply #26 on: June 16, 2011, 02:52:46 AM »
Quote from: jim234567 on June 12, 2011, 06:29:59 PM
Quote
Where do you put playlists in for this? A playlist has no metadata so it cannot be indexed for the database. That's simply a fact. So you end up with using a file browser to select the playlist file you want to use, and that's exactly what Rockbox does. If there really is a sensible way to "index" a playlist file please explain it to me.

I'm only suggesting it handle it like other players do.
When it's scanning your files ("Refreshing", to use Sansa's word for it), it automatically takes any playlist file it finds, (I assume scans it and generates whatever code it needs for it internally) and then shows it under a heading called "Playlists" on it's menu where it can easily be found by the user.

As others have explained, a playlist scan would be a poor fit for the database as it is designed today; a file-based solution is much simpler and more robust.  That said, I'm certainly open to considering new metadata types for the database, including playlists and cuesheets.

My view differs from bluebrother's in that I regard playlists as plain metadata.  A playlist is similar to an album in that it references an ordered collection of tracks.  If the database could store N:M relations (which it currently cannot), it would be trivial to add a query to the Database menu that listed all playlists, and then the tracks in a playlist.

Quote from: jim234567 on June 12, 2011, 06:29:59 PM
What it could simply do is upon finding a playlist file, it can scan it, then simply create a new file for itself the same name as the list scanned, and drop it in the Playlist folder automatically. Very simple. Then when the user opens Playlists on the main menu, he/she would see it already there, all he has to do is select it, and it will load and play.

I agree this would be simple, non-database solution to your problem. This scan could be achieved by a simple plugin or perhaps even a Lua script.  Rockbox has a plugin-autorun mechanism (disabled by default) that could be used to run this automatically after each boot (not sure though whether it can pass a script name to the Lua plugin).
Logged

  • Print
Pages: 1 [2]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Streamline playlist handling
 

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

Page created in 0.116 seconds with 14 queries.