#12 Music playlist support

open
None
5
2014-09-09
2009-12-07
Anonymous
No

Hi,

Thanks very much for creating MiniDLNA it is a great piece of work. MiniDLNA has recently taken over video and photo streaming duties (from Mediatomb) in my house :-)

Would you consider adding playlist support to MiniDLNA such that .m3u and .pls files are imported during a scan. In much the same way MiniDLNA creates genre folders from the tags in the audio files, it could also create new folders based on the content of the .m3u/.pls files? Mediatomb does have this feature and it is the only reason I've not fully migrated to MiniDLNA.

I have virtual machines running MiniDLNA latest CVS on 32-bit and 64-bit Linux. I will be more than happy to help with testing and feedback.

Regards, Martin.

Discussion

1 2 3 > >> (Page 1 of 3)

  • Anonymous
    2009-12-07

    Here is some additional information about .m3u and .pls playlists.

    http://www.assistanttools.com/articles/m3u_playlist_format.shtml
    http://www.assistanttools.com/articles/pls_playlist_format.shtml

    While there is no spec for how the media title should be formatted in an extended
    format .m3u or a .pls the accepted convention appears to be 'Artist - Track Title'
    for both play list formats, my testing with various tools bears this out. For example...

    .M3U Format

    #EXTINF:199,Pink Floyd - In The Flesh
    R:\Music\Pink Floyd\1979---The_Wall_CD1\1.In_The_Flesh.mp3

    .PLS Format

    File1=R:\Music\Pink Floyd\1979---The_Wall_CD1\1.In_The_Flesh.mp3
    Title1=Pink Floyd - In The Flesh
    Length1=199

     
  • Justin Maggard
    Justin Maggard
    2009-12-18

    Preliminary M3U playlist support draft

     
    Attachments
  • Justin Maggard
    Justin Maggard
    2009-12-18

    Can you please apply the attached patch and let me know how it works for you? It's pretty basic right now, but I'd like to know if I'm on the right track. There are still a number of things I can think of that would need to be handled:
    1) PLS support (only M3U is supported in this first patch)
    2) inotify handling of adding playlists
    3) inotify handling of adding new files that are referenced in existing playlists
    4) inotify handling of modifying playlists
    If you come across more items that need to be handled, please let me know of that also.

     
  • Stedy
    Stedy
    2009-12-19

    Hi
    I have done some testing whit your playlist patch, and it works ok for me. i generated the play list with Rythmbox.

    I don't know if you could put the playlist one level up? Now I have to go to music to chose playlist...
    My personal choice would be on the top level, but this is only my personal opinion.

    The only thing i regret on now is that i bought my television to early, should never bougt w4500 series but waited to video was suported by Sony.. wel wel. Guess i need a new Blu-ray player soon, so then i should be one whit DLNA video support.

     

  • Anonymous
    2009-12-23

    Hi,

    Happy Christmas!

    Thanks for the patch, it applied cleanly to CVS rev 164. I set MiniDLNA to to a full scan and have it auto create a new DB. All the music and playlists were scanned. However, when I went to select a Playlist on the PS3 there was a Playlist "menu" entry but no playlists with in it.

    I've done some testing and I think the problem is that the item in my m3u playlists are relative to the m3u file path. These m3u playlist are what I've been using with Banshee and Mediatomb. I've just copied a playlist and prefix the items with in it with the absolute path. I'll report back on my results later today.

    It is possible to MiniDLNA verify the existence of a play list item by the absolute file path location and also the relative location from the playlist itself?

    Regards, Martin.

     

  • Anonymous
    2009-12-23

    Hi,

    Just been looking throught the debug logs and found this.

    [2009/12/23 11:56:57] sql.c:38: error: SQL ERROR 1 [near "s_Eye": syntax error]
    INSERT into OBJECTS (OBJECT_ID, PARENT_ID, CLASS, DETAIL_ID, NAME, REF_ID) VALUES ('1$F$C$5411', '1$F$C', 'item.audioItem.musicTrack', 1830, 'Downloaded/Wolfmother/Wolfmother/08. Mind's_Eye.mp3', (select OBJECT_ID from OBJECTS where DETAIL_ID = 1830 and PARENT_ID glob '64$*'))

    Regards Martin.

     

  • Anonymous
    2009-12-23

    Hi,

    Hmm, scratch my earlier report that no playlists were visible on the PS3. After running up another clean install, with no DB, this time all the playlists are visible and playable on the PS3 :-)

    The only thing to change is that I added a new playlist which includes the absolute path to the playlist items. The original relative path playlists were unchanged and now show up and work?!

    Maybe I was impatient the first time, but all seem great now.

    Other than the outstanding features you've already mentioned the only other thing I've noticed is that items in the playlist are displayed alphabetically according to the top level directory they are located under, rather than alphabetically by artist or album.

    Anyway, very happy with the new feature. Thanks very much for the patch.

    Regards, Martin.

     
    Last edit: Anonymous 2014-08-23
  • Justin Maggard
    Justin Maggard
    2009-12-23

    M3U playlist support patch, second draft

     
    Attachments
  • Justin Maggard
    Justin Maggard
    2009-12-23

    • assigned_to: nobody --> jmaggard
     
  • Justin Maggard
    Justin Maggard
    2009-12-23

    I've attached a patch that should fix the issue with single quotes in the file name on playlist entries.

    Regarding the sort order, results should be ordered based on where the entry is in the playlist. Clients can ask for other sorting criteria, but, IIRC, the PS3 likes to get the results unsorted, and then sort them itself.

     
1 2 3 > >> (Page 1 of 3)