NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 297 298 299 300 301 … 433 Next »
NRecord still auto-deletes shows that have been archived

NRecord still auto-deletes shows that have been archived
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#1
2012-08-06, 08:29 AM (This post was last modified: 2012-08-06, 08:48 AM by johnsonx42.)
Code:
2012-08-05 22:00:03.984    [DEBUG][7]    Started recording (177820:8:F:\Recordings\Monk\Monk_20120805_22002300.ts)
2012-08-05 22:00:04.048    [DEBUG][7]    Starting: C:\Users\Public\NPVR\Scripts\ParallelProcessing.bat "F:\Recordings\Monk\Monk_20120805_22002300.ts" 8 177820 1532
2012-08-05 22:00:04.062    [DEBUG][7]     - deleting extra recording: C:\Archive\Monk\Monk_20120729_22002300.ts (7/30/2012 5:00:00 AM)
2012-08-05 22:00:04.404    [DEBUG][7]     -removing: C:\Archive\Monk\Monk_20120729_22002300.txt
2012-08-05 22:00:04.404    [DEBUG][7]     -removing: C:\Archive\Monk\Monk_20120729_22002300.log
2012-08-05 22:00:04.406    [DEBUG][7]     -removing: C:\Archive\Monk\Monk_20120729_22002300.edl
2012-08-05 22:00:04.411    [DEBUG][7]     -removing: C:\Archive\Monk\Monk_20120729_22002300.logo.txt

ok, I realize this may not count as a bug, since you probably had no intention of handling this any differently now. But the act of "Archiving" a show kinda implies the user is trying to keep it! So having it count the archived episodes against the "Keep X number of recordings" count, and then delete an episode from the archive location rather defeats the purpose.

I suggest two rules in your code when processing the "Keep X number of recordings" logic:

1. Count only the recordings which are currently stored in the current target recording path for that recurring recording.
2. Only delete the oldest show in the current target recording path for that recurring recording.

edit: also, while I've not tested it recently, I'm pretty sure there's still another bug in the auto-deletion logic that might be worth fixing:

if I am watching the oldest episode of a show when a new recording starts, it will try to delete the show I am watching and of course fail because it's open. but it will still remove the recording from the database, thus leaving the recording file 'orphaned' on the disk. After a few months, these orphans add up to many gigabytes of lost disk space, and I have to go hunting around and clean them up by hand. If the file delete fails, just leave the show in the database and go on... catch it next time.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,759
Threads: 769
Joined: Nov 2003
#2
2012-08-06, 05:25 PM
johnsonx42 Wrote:ok, I realize this may not count as a bug, since you probably had no intention of handling this any differently now.
This. I hadn't intended it to do that. I could rename the button 'Move' if you think that'd be clearer?

It's relatively easy for it to clear the group id, so that old recordings are no longer deleted, but I suspect many users would prefer to keep that.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#3
2012-08-06, 08:15 PM
Quote:I hadn't intended it to do that.
Since the old "Keep" function from GB-PVR has not made any return to NPVR, we still have no way to prevent a recording from being auto-deleted, other than to set the recording to "Keep All" and then manage by hand (a bit unwieldy for shows that record multiple times per day, and your wife just wants to save a few favorite episodes). Since I did not understand exactly how NPVR keeps track of which shows are part of the group being counted and auto-deleted, I thought the act of moving the show elsewhere would prevent deletion. I'm not complaining about that specific show that got deleted by the way, I didn't care, it's just the fact that it did meant the Archive function doesn't work the way I want it to.

Quote:It's relatively easy for it to clear the group id, so that old recordings are no longer deleted, but I suspect many users would prefer to keep that.
Perhaps an option in config.xml to set the behavior? <ArchiveClearGroupID>true/false</ArchiveClearGroupID>? Or alternately, if you add a function to NScriptHelper to do this, I could just call it with PostArchiving.bat. I personally think the desire to have the archive function protect a show from auto-deletion would be common enough that the user shouldn't need a special script for it, but any way it can be accomplished is fine.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,759
Threads: 769
Joined: Nov 2003
#4
2012-08-06, 08:57 PM
I haven't test it, but this patch should clear the group id when you archive, even if you archive to the current directory - in effect giving you a 'keep' function.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#5
2012-08-06, 09:19 PM
Thanks sub. I probably won't get to test it until tomorrow. Olympics are recording now, I'll be out during the break between the daytime and primetime olympics, and I stayed up very late last night so I doubt I'll make it past midnight when the primetime olympics finish.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#6
2012-08-11, 08:23 AM
While it's probably no surprise to you as I gather this was a simple change, I can report that with this patch it does seem to work as I hoped. I had 4 episodes of a show that was set to keep 4, I archived 3 of the 4, and then 2 more episodes recorded and I now have 6 episodes so it didn't count the 3 I had archived against the total. Presumably when it does reach the limit, it will only delete unarchived episodes. Thanks for this improvement, it is most welcome.

One bug does remain in the Archive function - if you go into the Archive menu, and then press Escape to go back (as is standard for NPVR) instead of selecting "[Cancel - Do nothing]", it still responds "Archiving" and issues a dummy archive request to a nul location; with this new code it presumably also clears the Group id which is not what the user was trying to accomplish by pressing Escape.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,759
Threads: 769
Joined: Nov 2003
#7
2012-08-11, 04:49 PM
johnsonx42 Wrote:One bug does remain in the Archive function - if you go into the Archive menu, and then press Escape to go back (as is standard for NPVR) instead of selecting "[Cancel - Do nothing]", it still responds "Archiving" and issues a dummy archive request to a nul location; with this new code it presumably also clears the Group id which is not what the user was trying to accomplish by pressing Escape.
This should fix it.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#8
2012-08-13, 02:38 AM
That patch works too, thanks.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  NPVR 4.2.4 Video Library No Longer Shows folder.jpg Lao Pan 12 3,895 2022-04-14, 04:33 AM
Last Post: Antmannz
  Auto Update EPG not running as scheduled? BairStrokes 2 1,756 2021-03-26, 12:02 PM
Last Post: NumberFive
  ts file shows length too long? SuttonWillow 2 1,938 2021-03-15, 01:56 PM
Last Post: mvallevand
  Auto Update EPG not running as scheduled Bobbybear 10 3,683 2020-10-24, 09:24 AM
Last Post: Bobbybear
  ts file shows length too long SamM 4 2,343 2020-10-06, 02:45 AM
Last Post: Ehrlichia
  Import recorded tv shows to NPVR mattman1968 9 6,036 2020-03-03, 12:57 PM
Last Post: Jimixter
  Auto delete recordings Brucek2839 3 1,793 2020-01-20, 09:12 PM
Last Post: mvallevand
  Artwork for Recorded Shows ChrisI 6 2,469 2020-01-12, 08:57 PM
Last Post: sub
  auto populate EPG source KarterJK 6 3,095 2019-12-03, 05:03 PM
Last Post: KarterJK
  Trying to record New series NEW shows. Records all, old and new. bass_gas 5 2,538 2019-08-20, 10:31 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode