Jump to content

Music Playlists


rickster53

Recommended Posts

rickster53

Music playlists support has been on the list of things to do for some time, and it is something that MB2 handled quite nicely thanks to the work of ebr.  I know this request has been brought up before, but Chessdragon136 has now done an excellent job developing an alpha release of a native app for  Samsung TVs (check thread in "Other Clients").  The app presently supports Movies and TV shows.  He is now working on support for Music and I raised the question of playlist support with him.  He believes that will require server-side support.  Given that playlists is one of the features that MB2 supported and that it is a function that other clients are dependent upon in order to provide it, can the dev team reconsider the priority of this?  Thanks for reconsidering it...

  • Like 6
Link to comment
Share on other sites

rickster53

Yes, at times he can be...   but the request for music playlist support has been out there for almost 6 months now  :( .  

Link to comment
Share on other sites

  • 1 month later...
cyfreezer

I also would like to vote for music playlist support. It is one of the Features that keeps me from intensive use of mediabrowser!

Link to comment
Share on other sites

  • 1 month later...
Starlionblue

I would add to this request that music playlists should be able to be stored in a central location as well as in album directories. I periodically export my iTunes playlists to m3u with iTunesExport. I then just dump them all in the top level music directory.

Link to comment
Share on other sites

Logos302

Yes, at times he can be...   but the request for music playlist support has been out there for almost 6 months now  :( .  

It's been longer then 6 months.  It was one of the things asked for in the earlier alpha stages.  But I'm sure luke has it on his list and is slowly but surely moving it up the list.  

Link to comment
Share on other sites

Beardyname

I would add to this request that music playlists should be able to be stored in a central location as well as in album directories. I periodically export my iTunes playlists to m3u with iTunesExport. I then just dump them all in the top level music directory.

 

Why ? I mean why should we store the playlist more than once ? sounds silly to me, especially if you have a playlist involving more than one artist.

Link to comment
Share on other sites

Starlionblue

Why ? I mean why should we store the playlist more than once ? sounds silly to me, especially if you have a playlist involving more than one artist.

 

That wasn't quite my point. My point is that I create playlists in iTunes. Then I export then to m3u format. If I had to put each in the directory for the artist or album, that would be a lot of work. As it is, I just lump them in the top directory.

Link to comment
Share on other sites

hedgehogg

we are able to queue up a bunch of songs in mbc then save as a playlist but can't bring up that playlist and play it.

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...
tontinuk

Hi All

 

Been using MB in different incarnations for a while. hedgehog is my brother and keeps me informed of updates etc. I love the android app.

 

Was really pleased to see the addition of the playlist feature, a question to the developers, I need to import large m3u playlists (800+ songs) and adding them 1 by 1 would be mind numbing, I am a programmer so knocked up a windows program to convert an m3u file to an xml file. It all works perfectly and creates exactly the right xml file, you can even set the playlist name and picture at conversion time.

 

The problem is that when the new playlist is added to the correct folder in appdata/roaming blah blah the MB server does not see it, I create the folder etc just the same way that the server has created one etc..am I missing a trick here, if I could get over this hurdle i can tidy it up and will quite happily share the little proggy to anyone that needs to convert their m3u playlist to an xml format.

Link to comment
Share on other sites

Hi All

 

Been using MB in different incarnations for a while. hedgehog is my brother and keeps me informed of updates etc. I love the android app.

 

Was really pleased to see the addition of the playlist feature, a question to the developers, I need to import large m3u playlists (800+ songs) and adding them 1 by 1 would be mind numbing, I am a programmer so knocked up a windows program to convert an m3u file to an xml file. It all works perfectly and creates exactly the right xml file, you can even set the playlist name and picture at conversion time.

 

The problem is that when the new playlist is added to the correct folder in appdata/roaming blah blah the MB server does not see it, I create the folder etc just the same way that the server has created one etc..am I missing a trick here, if I could get over this hurdle i can tidy it up and will quite happily share the little proggy to anyone that needs to convert their m3u playlist to an xml format.

 

Is the playlist not seen at all? or is it seen but empty?

Link to comment
Share on other sites

tontinuk

Just not seen. i already had 1 playlist with 1 song in and when i replaced its playlist.xml with another with more songs it still id not update to the new list, hedgehog showed me how to rescan etc but that did not make any difference neither did restarting the server.

 

a test xml is attached , you will see its correct. Unless I've been a retard which according to the wife is highly likely and very common.

 

playlist.xml

Link to comment
Share on other sites

fyi - currently this relies on the same functions as movie collections and are old shortcut feature. the paths listed in the playlist also need to be part of the MBS library. I'm sure that will eventually be improved but that's the way it is right now.

Link to comment
Share on other sites

Everything in your playlist needs to already exist in your MB library and be referenced in the exact same manner (the path exactly the same).

Link to comment
Share on other sites

tontinuk

Yes the songs are already in the library and the paths are identical. But that would stop the file from playing and not the playlist from showing up surely.

Link to comment
Share on other sites

Yes the songs are already in the library and the paths are identical. But that would stop the file from playing and not the playlist from showing up surely.

 

No, what Luke is telling you is our "collection" functionality is based on items that exist in the library (our database).  So, if we can't find the item in our database, it won't show up in your playlist.  That seems like the most likely reason this isn't working but it could be something else.

Link to comment
Share on other sites

tontinuk

okay I understand that. The songs are already in the music collection therefore in the database. Could it be that there is a database entry for a playlist. Once mb knows the playlist name it would know that there should be a xml file in a certain place. And although I have done the coversion and created the file structure it will never be seen.

 

 

This made me check something… I just created a new playlist with mb and saw the xml file created etc.. However if I delete the xml file mb still reads the playlist and plays the songs, therefore the whole playlist is within the database and all my manipulation of the xml is irrelevent.

 

 

I suppose all is not lost I have got a nice looking converter program should any one want it. Lol

 

 

 

 

Is there any way then that I can manipulate the db through an api or similar?

Edited by tontinuk
Link to comment
Share on other sites

what you're doing is probably ok but it just hasn't been tested yet. yes you could also use the api. I haven't actually written a developer wiki page on collections because the web client is the only client that manages them, but it shouldn't be too hard to figure out what the http requests look like. 

Link to comment
Share on other sites

tontinuk

okay thanks guys..

 

had a play with the api no probs adding a playlist and item(s) to the db and they all work in the library so pleased with myself. thank you for taking the time on the wiki documentation , one thing still eludes me, i need the itemid if i want to add the item to the playlist. i have read the docs and i am probably being thick as it says  about individual item retrieval but i need to queery the db on the 'path' item information, when i have  a match i will then get the itemid and use that to add to the playlist. but cant see how to query just that field.

Link to comment
Share on other sites

I don't think the API provides retrieval by path but that might be an interesting addition.  Luke - seems like it could be done easily as we could simply convert the path to an ID and retrieve the item that way.

 

Edit - wait, strike that - we salt the ID with the item type don't we.  Oh well, I guess we'd just have to search by path to find it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...