NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) TV Listings v
« Previous 1 2 3 4 5 6 … 13 Next »
enhancement Request: obey <AutoRemoveMissingRecordings> setting

 
  • 0 Vote(s) - 0 Average
enhancement Request: obey <AutoRemoveMissingRecordings> setting
gEd
Offline

Posting Freak

London
Posts: 3,516
Threads: 100
Joined: Jan 2005
#1
2014-09-03, 10:55 PM
Hi alibert

It would be good if TV listings/recordings behaved like Subs TV guide whereby if AutoRemoveMissingRecordings=true, upon startup, parse through the recordings table and remove any records from the table where the file no longer exists on disk.

I periodically mass-purge redundant (no longer wanted) recordings directly from windows explorer and would like to then see them disappear from TV Recordings.

Your plugins remain the family favourite here, so many thanks as always for your high quality code. (hence why you don't need to post very often!).
john
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#2
2014-09-03, 11:01 PM
Eh? I'm pretty sure that the purge is done by NextPVR when it starts and should be good for both Sub's Recordings and for Alibert's TV Recordings. There is another setting in config.xml that prevents the purge from the database if the recording "folder tree" is missing. Is the "tree" setting getting in the way?
gEd
Offline

Posting Freak

London
Posts: 3,516
Threads: 100
Joined: Jan 2005
#3
2014-09-04, 10:01 PM
Npvr only purges when you have Sub's TV Guide enabled. Maybe I should go and check with Sub if this should be run without his guide enabled.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
gEd
Offline

Posting Freak

London
Posts: 3,516
Threads: 100
Joined: Jan 2005
#4
2014-09-04, 11:34 PM
so... from
http://forums.nextpvr.com/showthread.php...post478240

"Sub says"

As long as he is using the built in API to load the recording list, then it'll do it.

ie, all he needs is this one line of code:

ScheduledRecording.LoadAll();

I'll leave it with you alibert for "future consideration".
many tx
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#5
2014-09-08, 06:05 AM
Hi,

the plugin loads the scheduled recordings incrementally on it's own, so if the "AutoRemoveMissingRecordings" magic happens during "ScheduledRecording.LoadAll()", it would never be executed during usage of the tv listings or tv recordings plugins.

I'll see if I can perform at least the first request to load all recordings using the mentioned call for a future release.

-alibert
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,739
Threads: 767
Joined: Nov 2003
#6
2014-09-08, 06:22 AM
Even if you don't use that method for loading your recordings, you could make an initial call to that method when your plugin is activated, and just don't use the return result.
gEd
Offline

Posting Freak

London
Posts: 3,516
Threads: 100
Joined: Jan 2005
#7
2014-09-08, 07:28 PM
thanks guys, appreciated.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Unhandled Exception setting up TV Listings. boogmeister1 16 9,484 2018-07-21, 09:20 PM
Last Post: tomhilton1
  Suggestion For Enhancement jrockow 0 1,561 2014-01-28, 02:49 AM
Last Post: jrockow
  Request: Sort by TheTVDB Season/Episode smajor 2 2,312 2012-08-15, 10:11 PM
Last Post: smajor
  Feature Request: Actual Recording Time gonzo90017 3 2,509 2012-04-25, 11:05 PM
Last Post: gonzo90017
  Request: delete directory in recordings smajor 1 1,869 2012-04-25, 04:26 PM
Last Post: alibert
  Feature Request- "Not Yet Watched" recordings sort OTAjunkie 0 1,569 2012-02-20, 03:53 PM
Last Post: OTAjunkie
  Feature Request - Highlight NEW episodes ttfitz 5 2,636 2012-02-13, 09:44 PM
Last Post: ttfitz
  Feature Request: Update cover image Petrovski 1 1,701 2012-01-28, 10:42 AM
Last Post: alibert
  Feature Request: TvRecordings : Vidoes vanderwelc 1 1,641 2012-01-16, 12:27 PM
Last Post: alibert
  Feature Request: Show error/failure message for failed recordings cncb 2 2,156 2011-12-13, 06:01 PM
Last Post: cncb

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

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

Linear Mode
Threaded Mode