Preserve This Episode via API?

For discussion related to MythTV which doesn't belong in another forum.

Moderator: Forum Moderators

Post Reply
sfatula
Senior
Posts: 159
Joined: Sun Aug 09, 2015 3:51 am
Location: Calera, OK
United States of America

Preserve This Episode via API?

Post by sfatula » Sat Mar 31, 2018 10:09 pm

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.

peteh
Junior
Posts: 17
Joined: Tue Jun 05, 2018 5:10 pm
Location: West Yorkshire
Great Britain

Re: Preserve This Episode via API?

Post by peteh » Wed Jun 13, 2018 2:44 pm

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.
Pete

sfatula
Senior
Posts: 159
Joined: Sun Aug 09, 2015 3:51 am
Location: Calera, OK
United States of America

Re: Preserve This Episode via API?

Post by sfatula » Wed Jun 13, 2018 3:04 pm

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.

peteh
Junior
Posts: 17
Joined: Tue Jun 05, 2018 5:10 pm
Location: West Yorkshire
Great Britain

Re: Preserve This Episode via API?

Post by peteh » Wed Jun 13, 2018 5:58 pm

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.
Pete

sfatula
Senior
Posts: 159
Joined: Sun Aug 09, 2015 3:51 am
Location: Calera, OK
United States of America

Re: Preserve This Episode via API?

Post by sfatula » Wed Jun 13, 2018 6:38 pm

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.

User avatar
bill6502
Developer
Posts: 1052
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Preserve This Episode via API?

Post by bill6502 » Wed Jun 13, 2018 9:01 pm

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.

sfatula
Senior
Posts: 159
Joined: Sun Aug 09, 2015 3:51 am
Location: Calera, OK
United States of America

Re: Preserve This Episode via API?

Post by sfatula » Wed Jun 13, 2018 9:53 pm

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.

User avatar
bill6502
Developer
Posts: 1052
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Preserve This Episode via API?

Post by bill6502 » Wed Jun 13, 2018 10:13 pm

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.

sfatula
Senior
Posts: 159
Joined: Sun Aug 09, 2015 3:51 am
Location: Calera, OK
United States of America

Re: Preserve This Episode via API?

Post by sfatula » Wed Jun 13, 2018 10:51 pm

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.

Post Reply