Old TV recordings not being automatically deleted
#31
(2017-07-24, 20:40)popy Wrote: ok, ill see my recordings as a ring buffer Big Grin
Would be nice if you can implement a setting where the user can choose the method of handling old recordings.
Sadly, i am not so familiar with kodi plugins code.

thx
pOpY
Yeah that would be cool. Maybe an archive or auto delete function.
Reply
#32
Try my posted dll, is working here with 17.4 [emoji3]

Gesendet von meinem LG-H815 mit Tapatalk
Reply
#33
Hey guys.

I have made an second attempt to meet margos requirements of the auto-deletion/keepmethod feature.
With this changes the user can set the default keepmethod of recordings in the settings of the pvr addon.
So in my case i'll set it to "until space needed" and old recordings will be deleted automatically on low space.
There are the following choices: Always, Watched, Until Space needed & Days (selectable from 1 to 365) 

@margro: Here is my PR: https://github.com/kodi-pvr/pvr.mediapor...er/pull/82

Here is the compiled binary: https://drive.google.com/file/d/1FD_g6XS...sp=sharing
It's based on the latest krypton addon v2.4.19.
Just replace the addon in your windows installation and DISABLE automatic updates for this addon (until it find its way into the official one).

have fun
pOpY
Reply
#34
Finally, the feature has found its way into the master, will be included in kodi v18.
Here is the merged PR: https://github.com/kodi-pvr/pvr.mediapor...5cfbf6fb42

pOpY
Reply
#35
(2018-02-04, 21:25)popy Wrote: Finally, the feature has found its way into the master, will be included in kodi v18.
Here is the merged PR: https://github.com/kodi-pvr/pvr.mediapor...5cfbf6fb42

pOpY
Exactly how will the "automatic delete" function for TV recordings work after this?

Currently it's a total mess, nothing gets deleted ever, no matter what flag is being set.

You can set these flags for recordings:
UntilSpaceNeeded = 0,
UntilWatched = 1,
TillDate = 2,
Always = 3
Then the "KeepUntil" date get sets, but it's not set correctly by the MediaPortal PVR Client.

Then there seems to be total confusion re who will do the actual deleting (frontend/backend).

Do you have any of this sorted out?
Reply
#36
You have to setup a disk quota on the tv server (backend) see here: https://www.team-mediaportal.com/wiki/di.../Recording#
With my addon change you are able to set the default keep method (the ones you listed above) for new timers created with kodi.

For me this works, old recordings gets deleted.

pOpY
Reply
#37
OK fine, but this is still a royal mess IMHO. The "keep method" should be set per recording, which I thought happened, except "KeepUntil" date is consistently set wrong.

Then there is the issue of who should do the deleting. I think the backend (MP TV server) only deletes according to the quota set (not useful for me at all - I need finer control of what gets deleted).

So to get this to work as intended I think the MP plugin should do more of the actual deleting. For example if "UntilWatched" is set then there is no way for MP TV Server to know when this recording has been watched in Kodi. And the MP TV server only seems to delete recordings if it really needs space and there is a quota set. But this should not really be necessary unless as a "last resort" if the logic involving "UntilSpaceNeeded = 0, UntilWatched = 1, TillDate = 2, Always = 3" and "KeepUntil" were actually working.

You wrote this above: There are the following choices: "Always, Watched, Until Space needed & Days (selectable from 1 to 365) "

Are these new settings and not the same as those being set per recording? How is the actual deleting done based on these choices and by who?

My apologies for being critical but I think partial solutions only makes this mess even more confusing.
Reply

Logout Mark Read Team Forum Stats Members Help
Old TV recordings not being automatically deleted0