INTERACT FORUM

Please login or register.

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

Author Topic: MCWS: Add file to existing playlist?  (Read 5569 times)

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2918
MCWS: Add file to existing playlist?
« on: August 26, 2013, 08:47:33 am »

I might just be missing it but is there a way to add a file to an existing playlist in the library (not current playing playlist) via MCWS?
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41926
  • Shoes gone again!
Re: MCWS: Add file to existing playlist?
« Reply #1 on: August 26, 2013, 09:07:58 am »

The only way currently is to call Playlists/Add and replace the playlist with a new one.

However, if you propose the function and parameters you like, we might be able to add support to a future MC.
Logged
Matt Ashland, JRiver Media Center

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2918
Re: MCWS: Add file to existing playlist?
« Reply #2 on: August 26, 2013, 11:25:37 am »

This would work for me: AddToPlaylist function that takes a playlist ID, path of file to be added, optional index of where to insert (defaults to end), and optional check for duplicate (doesn't add if already in playlist)

Thanks for considering it.
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41926
  • Shoes gone again!
Re: MCWS: Add file to existing playlist?
« Reply #3 on: September 03, 2013, 04:30:58 pm »

In a coming build:
SDK: Added MCWS/v1/Playlist/AddFile to add a single file to a playlist.

It will work like all other file functions, allowing you to specify a file key or filename.
Logged
Matt Ashland, JRiver Media Center

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2918
Re: MCWS: Add file to existing playlist?
« Reply #4 on: September 04, 2013, 08:41:36 am »

Thanks!
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP

nitephlight

  • World Citizen
  • ***
  • Posts: 142
Re: Re: Re: MCWS: Add file to existing playlist?
« Reply #5 on: September 20, 2013, 07:14:54 pm »

hey
In a coming build:
SDK: Added MCWS/v1/Playlist/AddFile to add a single file to a playlist.

It will work like all other file functions, allowing you to specify a file key or filename.

is this slated for a 19 build? this would save me hours of agonizing logic games to implement a floating gizmo control extension I'm working on for Android devices (bookmarks OTG 8)

EDIT : trolled myself for not just searching release notes >_< thanks a bunch guys!
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: MCWS: Add file to existing playlist?
« Reply #6 on: September 20, 2013, 07:16:46 pm »

It is already in:

19.0.35 (9/3/2013)

11. SDK: Added MCWS/v1/Playlist/AddFile to add a single file to a playlist.

Change log:

   http://wiki.jriver.com/index.php/Release_Notes_MC19
Logged
The opinions I express represent my own folly.

Elemental

  • Recent member
  • *
  • Posts: 6
Re: MCWS: Add file to existing playlist?
« Reply #7 on: March 16, 2014, 05:38:27 am »

Can you also add RemoveFile method?
Logged

AntaresFR

  • Recent member
  • *
  • Posts: 36
Re: MCWS: Add file to existing playlist?
« Reply #8 on: May 19, 2019, 04:38:29 pm »

Hi,

Can you also add RemoveFile method?

Any update on that ?
I dont know how to remove a file from a Playlist through the MCWS !

Regards
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41926
  • Shoes gone again!
Re: MCWS: Add file to existing playlist?
« Reply #9 on: May 20, 2019, 09:15:56 am »

Next build:
NEW: Added the MCWS function Playlist/RemoveFile.
Logged
Matt Ashland, JRiver Media Center

AntaresFR

  • Recent member
  • *
  • Posts: 36
Re: MCWS: Add file to existing playlist?
« Reply #10 on: May 21, 2019, 01:29:39 am »

Next build:
NEW: Added the MCWS function Playlist/RemoveFile.

You're a chief ;)
I found a way by getting all items off the list and rebuilding the list with same names except the removed item, but it's a bit heavy :)
Regards
Logged
Pages: [1]   Go Up