INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Export Playlist from the command line?  (Read 601 times)

MikeO3

  • Junior Woodchuck
  • **
  • Posts: 83
Export Playlist from the command line?
« on: October 12, 2022, 06:30:06 am »

How does one export a playlist from the command line? I don't see any documented way to specify the necessary export information and output path.
Code: [Select]
c:\mc29 /MCC 20003 935300850
Just pops-up the Export Playlist window. Is that the extent of this commands capability?
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8009
Re: Export Playlist from the command line?
« Reply #1 on: October 12, 2022, 07:58:43 am »

I think the REST interface (MCWS) might be able to do this.  It looks like the (Playlist Files) command will probably do what you want.  You can view the MCWS command documentation on your own system where MC is running by accessing it through it's port with:

http://localhost:52199/MCWS/v1/doc

Search for "mpl" and it will come up pretty quickly.

I hope that helps.

Brian.
Logged

MikeO3

  • Junior Woodchuck
  • **
  • Posts: 83
Re: Export Playlist from the command line?
« Reply #2 on: October 12, 2022, 06:37:06 pm »

Thanks for this. Playlists>Files  is somewhat useful that I can extract a list of paths\tracks and manually Save As from the browser however...
It's a list of files including the image paths associated with the track. Is that even valid in an M3U file?

The cool thing is that Smartlists work which I wasn't expecting!
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8009
Re: Export Playlist from the command line?
« Reply #3 on: October 12, 2022, 07:15:04 pm »

Doing a bit of testing on my system, I can only seem to get this to work to return an MPL file (JRiver specific XML file).  The "Action" has a selection for M3U instead, but when I try that, it pulls up some weird web player.  Maybe the M3U functionality isn't working?  Or maybe my syntax is wrong.  I tried:

Code: [Select]
http://localhost:52199/MCWS/v1/Playlist/Files?PlaylistType=id&Action=m3u&Playlist=1804037697

Brian.
Logged

MikeO3

  • Junior Woodchuck
  • **
  • Posts: 83
Re: Export Playlist from the command line?
« Reply #4 on: October 12, 2022, 07:24:59 pm »

Code: [Select]
http://localhost:52199/MCWS/v1/Playlist/Files?PlaylistType=id&Action=m3u&Playlist=1804037697

Probably syntax I think you need caps M3U (or you have a bad playlist ID).

Make any syntax errors and it appears the playlist gets activated in JRiver! My wife was laughing when the desktop workstation started to play Enter Sandman and I had headphones on listening to jazz.
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8009
Re: Export Playlist from the command line?
« Reply #5 on: October 12, 2022, 09:14:11 pm »

I've tried all lowercase m3u and all uppercase M3U.  The playlist id is correct, as I get an MPL file when I use Action=mpl.

Brian.
Logged
Pages: [1]   Go Up