Page 1 of 1

Preserve This Episode via API?

Posted: Sat Mar 31, 2018 10:09 pm
by sfatula
Is there a way to do that? Very handy. Would allow other apps on non myth platforms to be able to retain key episodes of certain programs. Anyway to do this via API call? I don't see it, could have missed it or could be hidden, or maybe not currently possible.

I find this capability very handy.

How does preserve differ from disable auto expire? They both show on the manage recordings screen under storage options.

I was trying to get a certain app updated to include this capability. Idea is to prevent a specific episode from being auto expired via API.

Re: Preserve This Episode via API?

Posted: Wed Jun 13, 2018 2:44 pm
by peteh
Couldn't you just copy it to a separate folder or subfolder. I know that's not exactly what you asked but it would take seconds to run the command. I'm on linux but from dim and distant memory I'm sure that can be done on ms too.
Or even just drag and drop in a file manager.

Re: Preserve This Episode via API?

Posted: Wed Jun 13, 2018 3:04 pm
by sfatula
The backend is headless. Could I vnc in and do so? Sure, but, my wife cannot. And, I am not around every time she wants to save something and do this. So, no, that is not practical.

Re: Preserve This Episode via API?

Posted: Wed Jun 13, 2018 5:58 pm
by peteh
I don't know if you're linux or ms and I really am out of touch with ms. A bash script setup would allow your wife to it with a $1 variable but I don't remember if an ms bat file handles variables in that way.

Re: Preserve This Episode via API?

Posted: Wed Jun 13, 2018 6:38 pm
by sfatula
A script is not ok, this is not a solution for the wife. She wouldn't even know how to login let alone type in a command, and no, that's not the way it should be done. I am asking for it to be in the API one day if it is not. I will need to submit an official request I suppose since no one has said it is possible currently, and I don't see it.

Re: Preserve This Episode via API?

Posted: Wed Jun 13, 2018 9:01 pm
by bill6502
To answer one of your 1st questions, preserve appears to be what's
needed here because when MaxEpisodes is reached, the query to
find things to delete excludes recordings with preserve set.

It's not a question of possible, it is. Finding time to develop a proper
solution (e.g. find an existing method that does what's wanted as
opposed to just creating SQL in the endpoint's method) then testing
it. This specific case is complicated by another request to make 'all' recorded settings
changeable from a single new endpoint. Good idea, harder implementation.
No desire to do both.

If the script mentioned above (didn't see the actual script) works, then it
could be put in a UserJob and called with the new Dvr/ManageJobQueue
endpoint. Only available in v30-Pre. But that's another story.

Re: Preserve This Episode via API?

Posted: Wed Jun 13, 2018 9:53 pm
by sfatula
Yes, that is true, can be done (now) via a userjob. This was posted before that change of course. I would think the request to make all recorded settings changeable from a single endpoint to be much more important and of course handle this one. Is that an official request on a list somewhere? If so, then, good enough for me.

Re: Preserve This Episode via API?

Posted: Wed Jun 13, 2018 10:13 pm
by bill6502
Yes, viewtopic.php?f=9&t=2586 is probably the best way currently.

The Submission Guidelines don't mention that putting it there will make it happen.
The bullets are perfectly valid. At least the idea is documented.

Re: Preserve This Episode via API?

Posted: Wed Jun 13, 2018 10:51 pm
by sfatula
Thanks, I totally forgot but I've been in rotator cuff recovery for a while now and it HURTS, badly. At week 13 now. But at least I am getting back in the gym, as a total weakling now, but starting.