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 … 216 217 218 219 220 … 433 Next »
<AutoRemoveMissingRecordings> when and/or how to fire it off?

<AutoRemoveMissingRecordings> when and/or how to fire it off?
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#1
2014-05-06, 04:43 PM
If <AutoRemoveMissingRecordings> is true, when will the removal take place? I moving stuff around and exporting/editing/importing and the old entries are still in the database - when or what starts the cleanup running?

thanks
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#2
2014-05-06, 05:28 PM
It does this whenever it needs to load the recording list (like going the recordings screen, or tv guide). With this setting enabled, when it loads the recording list from the database, it does a double check if the file exists on disk, and if not, removes the entry from the database.
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#3
2014-05-06, 05:58 PM
Thanks the very prompt response.
Ah, I must have misunderstood how it worked.
I moved my recordings from D: to F: and changed the recordings directory to F: at the same time and stopped/started the service expecting that the database entries would be removed, but they were not removed. Trying to play them did nothing as expected.
So I changed the recordings directory back to D: and the entries were removed automatically.
From the above it looks like the drive letter in the database is not checked when auto removal takes place.

Anyway, it is empty now, all ready for an import after editing the drive letter.

thanks
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#4
2014-05-06, 06:03 PM
martint123 Wrote:Thanks the very prompt response.
Ah, I must have misunderstood how it worked.
I moved my recordings from D: to F: and changed the recordings directory to F: at the same time and stopped/started the service expecting that the database entries would be removed, but they were not removed. Trying to play them did nothing as expected.
So I changed the recordings directory back to D: and the entries were removed automatically.
From the above it looks like the drive letter in the database is not checked when auto removal takes place.
To be clear:

ie, when it loads the recordings list from the database, and it says "D:\Recordings\Something.ts", then it'll ask Windows if it has a "D:\Recordings\Something.ts" file. If Windows says it doesn't exist, then it's deleted from the database.
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#5
2014-05-06, 06:16 PM
sub Wrote:To be clear:

ie, when it loads the recordings list from the database, and it says "D:\Recordings\Something.ts", then it'll ask Windows if it has a "D:\Recordings\Something.ts" file. If Windows says it doesn't exist, then it's deleted from the database.

Sorry to disagree, but that isn't how it appeared to happen. It would appear not to remove them if they exist in the directory pointed to by the recordings directory.

These are the steps I took.

stop service
Cut and paste recordings directory and all subdirs from D: to F: (all gone from DSmile
Change default recordings directory from D: to F:
Set autoremove in config.xml to true
start recording service and npvr
Recordings still showing. Trying to play one fails.
Ask question in this thread as to when the cleanup takes place.
stop service
change default recordings directory back to D:
start service an npvr - recordings gone.
change default back to F: and import the old export - all good.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#6
2014-05-06, 06:29 PM
The rule is a little more complicated than my description. There is one more important aspect. If it cant find the directory that the recording was originally in, or it's parent, then it doesn't delete it - on the assumption the user is currently messing around with their recording directories, or they record to a network share which is currently not available. This extra rule was put in to avoid these common scenarios which would often lead to posts on the forum about recordings being unexpectedly deleted.

So, in your case it probably came down to how much of the branch you tried to move.
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#7
2014-05-06, 06:42 PM
sub Wrote:So, in your case it probably came down to how much of the branch you tried to move.

Right, that's it then as I cut and pasted the base recording directory. Now you mention it, I recall the change to preserve the data if a share was off line - an excellent change in itself. Sorry to have troubled you, it's difficult for us mere mortals to keep track of all the improvements Wink
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#8
2014-05-08, 12:22 PM
This may be relevant ... I suspect that it's mostly to do with network shares and disappearing drive mappings but it may apply here.

http://www.nextpvr.com/nwiki/pmwiki.php?...nced#toc93
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#9
2014-05-08, 02:29 PM
Graham Wrote:This may be relevant ... I suspect that it's mostly to do with network shares and disappearing drive mappings but it may apply here.

<NoRemoveWhenTreeMissing> I think you're right Graham, the circumstances are the same as a none-found root recording directory. A quick search doesn't reveal any real mention of it, but now you have mentioned it, I'm sure I recall some chat when/why it was introduced.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Autoremovemissingrecordings not working [Solved] gEd 0 911 2018-02-05, 11:30 PM
Last Post: gEd
  AutoRemoveMissingRecordings parameter - When? scJohn 1 1,435 2016-06-07, 06:22 PM
Last Post: Graham
  AutoRemoveMissingRecordings=true only works with TV Guide enabled. gEd 3 1,870 2014-09-04, 11:22 PM
Last Post: sub
  AutoRemoveMissingRecordings=false not keeping recordings in 2.1.4 pvruser 6 2,267 2011-07-07, 11:32 PM
Last Post: pvruser
  Viaccess MPEG4 Common Interface with Fire DTV-T does'nt work in nPVR 1.5.33 PVR fan 21 5,944 2010-11-09, 07:57 PM
Last Post: PVR fan
  AutoRemoveMissingRecordings setting does not work Barsk 7 2,723 2010-10-22, 08:07 AM
Last Post: Barsk

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

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

Linear Mode
Threaded Mode