Posts: 20
Joined: Dec 2016
Reputation:
0
A gentle bump in case you missed this one margro, I could use some input on this.
Posts: 20
Joined: Dec 2016
Reputation:
0
margro: This is still a problem, recordings are NOT being deleted. Could you give some feedback on what I wrote above please?
If lack of time is the issue I'll be more than happy to take a look at your code and see if I can get this fixed. Was gonna write a small program that deletes recordings based on my logic above, but I figure the time will be better spent fixing the real issue.
Please let me know, thanks!
Posts: 714
Joined: Mar 2015
Reputation:
17
Well, if the client is setting the keepUntil field as 1 (until watched) then it would make sense for the client to be responsible for the deletion I suppose.
If you are setting it as keepUntil a date, then it would have to be the back end.
I repeat my advice to you. Install the MediaPortal front end, and set a few recordings there. Check what is in the database, and see if the deletion works as expected. If it all works fine within MediaPortal, then you are in a position to compare directly and see if the Kodi plugin is setting things incorrectly. If it is, I'd say it is likely to be an easy fix.
Posts: 20
Joined: Dec 2016
Reputation:
0
Yes it's the backend that is responsible for deleting, except when keepUntil is 1 as you say.
I have verified that recordings gets deleted when I schedule them with the MP frontend.
Seems like my theory re how the dates are interpreted are correct.
margro: need your input on this please. I realize that this is done on your spare time, hence the offer to have a look at the code and help out correcting this. Please advise, thanks!
Posts: 714
Joined: Mar 2015
Reputation:
17
So, we need a clear statement of what is entered into the database when MediaPortal schedules the recording, and what Kodi does it, so we can see what is different.
Logs of MediaPortal deleting a recording might also help.
Ultimately, a quick search of the plugin code for 'keepUntil' might help. If the wrong number is being placed in the field, I don't think it will be too hard to fix.
Best wishes,
Mark
Posts: 20
Joined: Dec 2016
Reputation:
0
I'll be busy the next few weeks but I'll look into this again in a few weeks, will do some testing and compare the difference in the DB for recording schedules set by Kodi vs media Portal itself. I agree it should be an easy fix, if there is any interest in fixing it. My understanding is that margro is maintaining the MP Kodi plugin, and he has stopped responding so not sure who can fix this. I could give it a shot myself but can't find the source for the plugin (at least not an updated version) anywhere.
Posts: 530
Joined: Nov 2008
Reputation:
19
Same issue here, have set the Mediaportal TVServer to delete recordings if the disk quota is less than 110 GB.
Sadly TV Server doesnt delete the recordings.
After a quick look into the DB in table "recording" brings light intothe issue.
The field "keepUntil" is "3" -> so the recordings will be keept "Always"
Is it possible that the addon is putting the wrong number into the field?
pOpY
Posts: 883
Joined: Oct 2009
Reputation:
37
margro
Posting Freak
Posts: 883
I'm not going to merge this. Keep always is a deliberate choice. I don't want to loose my old recordings if my disk is full. A better way is to make the default configurable in the PVR addon settings.
Posts: 62
Joined: Dec 2015
Reputation:
0
I believe I have the same thing happening to me too, but I would like to know, if I schedule a series and have some record then shorten the lifetime in the series schedule how long should the original recordings stay there?