News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Testers for Playlist Export functionality (.m3u, .pls)

Started by jondecker76, July 17, 2008, 11:33:19 PM

Previous topic - Next topic

jondecker76

I have just committed revision #21207 which includes playlist export. Playlists can now be exported to M3U (*.m3u), Extended M3U(*.m3u) and Shoutcast Playlist (*.pls) formats. You are also able to select whether to only export Music Files, Music and Video Files, or All Files (Full Backup).
I have tested it on every linux media player I could get my hands on that supports media on network shares, with positive results. I would be interested in hearing how the generated playlists do on Windows and Mac platforms.

If anyone is willing to do some testing, here are the instructions to get it working...
1) Have a development environment installed
2) run an svn update on the charon-merge branch (should get you to svn revision 21207 or higher)
3) Copy the following files from ~/charon-merge/web/pluto-admin/ to /var/www/pluto-admin/:
      index.php
      languages/en/exportPlaylist.lang.php
      operations/mediaBrowser/exportPlaylist.php
      operations/mediaBrowser/playlists.php
      operations/mediaBrowser/editPlaylist.php
      operations/mediaBrowser/images/*

Export options are available from the main playlist page, and the edit playlist page.

Once I can confirm that generated playlist work as expected in most cases, I will finish the playlist import functionality. Of course, if you notice any bugs or anything out of place, please post here so I can fix it.


gbutters

I have 461 files in the play list and this is what I get.

The exported playlist would be empty. Please check your settings and the playlist, and try again

Also in editPlaylist.php on line 5 missing leading "/" on the lang file.

jondecker76

fixed the include on the language file


Couldn't find why you were getting the error message. This error message is flagged when no results are returned from the SQL query. Make sure that the /operations/mediaBrowser/playlists.php and operations/mediaBrowser/editPlaylist.php files have been copied over. Also, if you get the error message again, look at the address bar in the popup window and paste it here.. It should be something like index.php?section=exportPlaylist&playlistID=# where # is the ID of the playlist.

gbutters

Quote from: jondecker76 on July 18, 2008, 01:46:26 AM
fixed the include on the language file


Couldn't find why you were getting the error message. This error message is flagged when no results are returned from the SQL query. Make sure that the /operations/mediaBrowser/playlists.php and operations/mediaBrowser/editPlaylist.php files have been copied over. Also, if you get the error message again, look at the address bar in the popup window and paste it here.. It should be something like index.php?section=exportPlaylist&playlistID=# where # is the ID of the playlist.

Before clicking export

http://dcerouter/pluto-admin/index.php?section=exportPlaylist&playlistID=1

After clicking export

http://dcerouter/pluto-admin/index.php?section=exportPlaylist&msg=The+exported+playlist+would+be+empty.+Please+check+your+settings+and+the+playlist%2C+and+try+again&exportType=extm3u&exportFileTypes=music&playlistID=1

And I am trying to export playlist 1

gbutters

Ok I found the problem in exportPlaylist.php on line 134 PlaylistEntry.FK_Playlist is hard coded to playlist 4.

jondecker76

haha oops - I added that for testing - I never realized  that I left it in because I have a playlist 4 and did most of my testing on that one because it was a pretty large playlist. Svn update again and copy over exportPlaylist.php

freymann

Quote from: jondecker76 on July 17, 2008, 11:33:19 PM
3) Copy the following files from ~/charon-merge/web/pluto-admin/ to /var/www/pluto-admin/:
      index.php
      languages/en/exportPlaylist.php
      operations/mediaBrowser/exportPlaylist.php
      operations/mediaBrowser/playlists.php
      operations/mediaBrowser/editPlaylist.php
      operations/mediaBrowser/images/*

Small correction to the filenames...

languages/en/exportPlaylist.php

is really

languages/en/exportPlaylist.lang.php


jondecker76


gbutters

OK it looks good now. Was able to play using vlc on xp.

jondecker76

ok this is good news so far - looks like everything is recognizing the generated smb paths..
Could you try test a few more Windows Based players?

Anyone with a Mac?

colinjones

Jon - did this ever get finished? (particularly the import piece?)

jondecker76

Yes, just got to do a little more testing and commit the changes. So far in my testing, all of the playlist stuff has worked as expected.

This is my first time on the forums in months, I had an extremely busy summer - but things are slowing up so I'll be back to the grind with LMCE over the next couple of weeks!

colinjones

oops, sorry posted comments on this topic in the other thread we are talking in....(playlist editor)