Author Topic: Testers for Playlist Export functionality (.m3u, .pls)  (Read 2861 times)

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Testers for Playlist Export functionality (.m3u, .pls)
« on: July 17, 2008, 11:33:19 pm »
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.

« Last Edit: July 18, 2008, 02:42:00 pm by jondecker76 »

gbutters

  • Regular Poster
  • **
  • Posts: 19
    • View Profile
Re: Testers for Playlist Export functionality (.m3u, .pls)
« Reply #1 on: July 18, 2008, 12:52:04 am »
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

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: Testers for Playlist Export functionality (.m3u, .pls)
« Reply #2 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.

gbutters

  • Regular Poster
  • **
  • Posts: 19
    • View Profile
Re: Testers for Playlist Export functionality (.m3u, .pls)
« Reply #3 on: July 18, 2008, 03:53:51 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

  • Regular Poster
  • **
  • Posts: 19
    • View Profile
Re: Testers for Playlist Export functionality (.m3u, .pls)
« Reply #4 on: July 18, 2008, 04:13:06 am »
Ok I found the problem in exportPlaylist.php on line 134 PlaylistEntry.FK_Playlist is hard coded to playlist 4.

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: Testers for Playlist Export functionality (.m3u, .pls)
« Reply #5 on: July 18, 2008, 11:19:36 am »
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

  • Douchebag
  • Guru
  • *
  • Posts: 380
    • View Profile
Re: Testers for Playlist Export functionality (.m3u, .pls)
« Reply #6 on: July 18, 2008, 01:58:02 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

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: Testers for Playlist Export functionality (.m3u, .pls)
« Reply #7 on: July 18, 2008, 02:43:38 pm »
thanks - updated instructions above


gbutters

  • Regular Poster
  • **
  • Posts: 19
    • View Profile
Re: Testers for Playlist Export functionality (.m3u, .pls)
« Reply #8 on: July 19, 2008, 05:58:05 am »
OK it looks good now. Was able to play using vlc on xp.

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: Testers for Playlist Export functionality (.m3u, .pls)
« Reply #9 on: July 19, 2008, 03:01:19 pm »
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

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Testers for Playlist Export functionality (.m3u, .pls)
« Reply #10 on: October 16, 2008, 07:34:32 am »
Jon - did this ever get finished? (particularly the import piece?)

jondecker76

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 763
    • View Profile
Re: Testers for Playlist Export functionality (.m3u, .pls)
« Reply #11 on: October 19, 2008, 03:10:00 am »
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

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Testers for Playlist Export functionality (.m3u, .pls)
« Reply #12 on: October 19, 2008, 10:06:40 pm »
oops, sorry posted comments on this topic in the other thread we are talking in....(playlist editor)