INTERACT FORUM

Windows => Plug-in Development => Topic started by: cncb on August 26, 2013, 08:47:33 am

Title: MCWS: Add file to existing playlist?
Post by: cncb 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?
Title: Re: MCWS: Add file to existing playlist?
Post by: Matt 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.
Title: Re: MCWS: Add file to existing playlist?
Post by: cncb 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.
Title: Re: MCWS: Add file to existing playlist?
Post by: Matt 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.
Title: Re: MCWS: Add file to existing playlist?
Post by: cncb on September 04, 2013, 08:41:36 am
Thanks!
Title: Re: Re: Re: MCWS: Add file to existing playlist?
Post by: nitephlight 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!
Title: Re: MCWS: Add file to existing playlist?
Post by: MrC 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 (http://wiki.jriver.com/index.php/Release_Notes_MC19)
Title: Re: MCWS: Add file to existing playlist?
Post by: Elemental on March 16, 2014, 05:38:27 am
Can you also add RemoveFile method?
Title: Re: MCWS: Add file to existing playlist?
Post by: AntaresFR 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
Title: Re: MCWS: Add file to existing playlist?
Post by: Matt on May 20, 2019, 09:15:56 am
Next build:
NEW: Added the MCWS function Playlist/RemoveFile.
Title: Re: MCWS: Add file to existing playlist?
Post by: AntaresFR 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