INTERACT FORUM

Please login or register.

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

Author Topic: Delete podcasts via MCWS  (Read 2208 times)

pahunt

  • World Citizen
  • ***
  • Posts: 236
Delete podcasts via MCWS
« on: December 28, 2014, 11:16:16 am »

I have looked through the MCWS documentation and cannot find a method that would allow me to delete podcasts. Have I missed something or if not would it be possible to add a method that would enable this?

Thanks

pahunt

  • World Citizen
  • ***
  • Posts: 236
Re: Delete podcasts via MCWS
« Reply #1 on: December 31, 2014, 12:05:53 pm »

Bump

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: Delete podcasts via MCWS
« Reply #2 on: December 31, 2014, 04:28:09 pm »

Your request has been noted.  I can't say yet whether we'll add it soon or not.  It depends how deep the Podcast code for deletion is (I'm on break so can't look just yet).

Thanks.
Logged
Matt Ashland, JRiver Media Center

pahunt

  • World Citizen
  • ***
  • Posts: 236
Re: Delete podcasts via MCWS
« Reply #3 on: January 01, 2015, 01:32:47 am »

Thanks Matt

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: Delete podcasts via MCWS
« Reply #4 on: January 05, 2015, 08:18:31 am »

Next build:
NEW: Added the web service function MCWS/v1/Podcast/Delete to delete a Podcast by name.
Logged
Matt Ashland, JRiver Media Center

pahunt

  • World Citizen
  • ***
  • Posts: 236
Re: Delete podcasts via MCWS
« Reply #5 on: January 05, 2015, 08:20:42 am »

Thanks Matt, I'm really, really sorry but I'm hoping this means I can delete individual episodes and not podcast subscriptions, I've only just realised my original request may not have been clear on that :(

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: Delete podcasts via MCWS
« Reply #6 on: January 05, 2015, 10:04:59 am »

This erases the feed.

Individual files is a different ball of wax.  Do you have the key for the files you want to delete?
Logged
Matt Ashland, JRiver Media Center

pahunt

  • World Citizen
  • ***
  • Posts: 236
Re: Delete podcasts via MCWS
« Reply #7 on: January 05, 2015, 10:06:17 am »

So sorry Matt, really didn't mean to waste your time. Yes, I do have the key of the file to delete.

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: Delete podcasts via MCWS
« Reply #8 on: January 05, 2015, 10:11:15 am »

Next build:
NEW: Added MCWS/v1/File/Delete to remove a file from the library.
Logged
Matt Ashland, JRiver Media Center

pahunt

  • World Citizen
  • ***
  • Posts: 236
Re: Delete podcasts via MCWS
« Reply #9 on: January 05, 2015, 10:12:25 am »

Well that was quick!!! Thanks so much Matt and sorry again for the confusion.

pahunt

  • World Citizen
  • ***
  • Posts: 236
Re: Delete podcasts via MCWS
« Reply #10 on: January 06, 2015, 04:35:40 pm »

Just testing this now and I've found an issue I'm afraid. While I can successfully delete a podcast episode it puts the episode straight back into a "Queued" state and then automatically downloads it again.

pahunt

  • World Citizen
  • ***
  • Posts: 236
Re: Delete podcasts via MCWS
« Reply #11 on: January 09, 2015, 08:51:37 am »

Matt, I don't know if you saw the issue I'm still having with this but it is very close to be just what I need

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: Delete podcasts via MCWS
« Reply #12 on: January 09, 2015, 09:06:10 am »

Just testing this now and I've found an issue I'm afraid. While I can successfully delete a podcast episode it puts the episode straight back into a "Queued" state and then automatically downloads it again.

It might do that if an episode is removed from the database.  I don't know how to stop that.
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: Delete podcasts via MCWS
« Reply #13 on: January 09, 2015, 09:17:00 am »

When I delete a file in a Podcast using the web service, it switches to "Deleted" in the Podcast view.  That seems perfect.
Logged
Matt Ashland, JRiver Media Center

pahunt

  • World Citizen
  • ***
  • Posts: 236
Re: Delete podcasts via MCWS
« Reply #14 on: January 09, 2015, 09:41:20 am »

You know what, it's working for me now too! I don't know what was going on the other day but it's fine now. Sorry for the false alarm.

pahunt

  • World Citizen
  • ***
  • Posts: 236
Re: Delete podcasts via MCWS
« Reply #15 on: January 11, 2015, 04:14:02 pm »

Just in case anyone ever gets the same issue, I've got to the bottom of what was going on. I was calling the MCWS method from a C# app using this code

Code: [Select]
var webRequest = WebRequest.Create("http://xxxxxxxxxxxxxxx/MCWS/v1/File/Delete?File=xxxxxxx");           
webRequest.Credentials = new NetworkCredential("xxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxx");
var response = webRequest.GetResponse();

What fixed it was to properly finish the request by adding this line

Code: [Select]
response.Close();
Pages: [1]   Go Up