HTTP Api Delete Media

Hi All,

 

I've been playing a bit with the HTTP Api of PMS, and I was wondering how I can delete a particular Media of one Video that has two medias.

 

Thanks for infos

I can do a "DELETE" method on a Video.

Example : /library/metadata/xxxxx

But I really would like to know if there is a way to delete only one Media/Part of a video that has multiple Medias.

I know I can access /library/parts/xxxx to play the file, but the "DELETE" method on this one doesn't work.

Anyone with an idea?

Thanks

Well, if you can use the API to pull back XML that reference 2 files for the same Show/Season/Episode, then yes,

I already wrote something to parse the through the xml grab the files and remove them. So it wouldn't be to difficult to grab the related info and dump it into an array and then check for duplicates in that array, then delete either the first one or second by date or however you'd like to set the determing factor as to which one gets deleted.

http://forums.plexapp.com/index.php/topic/84822-plex-auto-delete-script/

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.