NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) NextPVR Enhanced Web Admin (NEWA) v
« Previous 1 … 24 25 26 27 28 … 47 Next »
How to initiate auto-search update from a scheduled task

 
  • 0 Vote(s) - 0 Average
How to initiate auto-search update from a scheduled task
difdiffer
Offline

Junior Member

Posts: 12
Threads: 1
Joined: May 2008
#1
2008-06-10, 09:39 AM
Can anyone else tell me if I can start the auto-search update function from the command line (or any other way). I would like to add it to a scheduled task. This is because sometimes the auto-search seems to miss a few items that are in the EPG. In the config Tab it is possible to click an update button, so i guess it must be possible.

When does auto-search actually run, it is connected with the epg update of GBPVR right?

I could do this command line: "PVRX2.exe -UpdateEPGOnly" But i rather just update the auto-search, as I always see that the search may miss some schedules at first, but that the EPG is loaded fine into the database by GBPVR.
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#2
2008-06-12, 01:33 AM
difdiffer Wrote:Can anyone else tell me if I can start the auto-search update function from the command line (or any other way). I would like to add it to a scheduled task. This is because sometimes the auto-search seems to miss a few items that are in the EPG. In the config Tab it is possible to click an update button, so i guess it must be possible.

When does auto-search actually run, it is connected with the epg update of GBPVR right?

I could do this command line: "PVRX2.exe -UpdateEPGOnly" But i rather just update the auto-search, as I always see that the search may miss some schedules at first, but that the EPG is loaded fine into the database by GBPVR.

Auto search runs 1 time per day when it has been at least 1 hour since the last EPG update. The check is performed every time you access EWA and the login page is processed.

The code is isolated into a single class within EWA and could be easily ported out to a command line app. All you need to do to run it are the following two lines of code....

Code:
SavedSearchUtils searchUtil = new SavedSearchUtils();
                    searchUtil.autoSearch(searchUtil.loadAutoSearches());
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#3
2008-06-12, 01:42 AM
Could something similar work for Auto-Record...
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#4
2008-06-12, 02:11 AM
ACTCMS Wrote:Could something similar work for Auto-Record...

Actually it would because auto-record is part of the save search information and when Auto Search runs it looks to see if Auto Record is set for the search and if it is it sets the recording for found matches.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
difdiffer
Offline

Junior Member

Posts: 12
Threads: 1
Joined: May 2008
#5
2008-06-12, 08:28 AM
I hate to admit it, but I am at a loss at how to use the code you suggested. Should I make a VB program out of it? Should create my own aspx page wich I then call?

I tried doing the latter, just for the sake of it, but I couldn;t get it to work, and furthermore I do have a password on the site, so I should overcome that problem as well.

Could you unclejoghnsband, or someone else give me some more input so I may learn?

Thanks,

Peter
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#6
2008-06-15, 04:59 AM (This post was last modified: 2008-08-31, 10:41 PM by UncleJohnsBand.)
Drop this into you gbpvr (not gbpvr\web) directory and run it....it does create a log file.....but there isn't much in it....basic GBPVR initialization stuff.

This should execute whatever auto-searches you have saved.


Edit: new version on this post.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#7
2008-06-15, 06:08 PM
Great stuff...

I've now got the fully automatic search and record facility I always wanted. Big Grin

It would be worth putting this on the wiki...
difdiffer
Offline

Junior Member

Posts: 12
Threads: 1
Joined: May 2008
#8
2008-06-16, 07:46 AM
Super,

thanks a lot! Now I can go away for a week or two and not bother about having to login to make sure the programs I autosearch are being recorded.

Cheers
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#9
2008-06-16, 09:42 AM
ACTCMS Wrote:Great stuff...

I've now got the fully automatic search and record facility I always wanted. Big Grin

It would be worth putting this on the wiki...

Yea...but I want to do some code cleanup firtst....it is a real frankensien of code/classes pulled from EWA and thrown into a standalone command line app.....I'll get it there in a little while.....thought I would post it out here first for some testing and feedback first.....
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
difdiffer
Offline

Junior Member

Posts: 12
Threads: 1
Joined: May 2008
#10
2008-06-23, 11:00 AM
You asked for feedback, here it is.. it works like a charm. thx!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Episode search missing in 4.2.4 UncT 4 3,139 2019-03-08, 06:08 PM
Last Post: UncT
  NEWA scheduled recording update ability broken in 4.2.2 snagglewest 0 2,032 2018-07-11, 12:12 AM
Last Post: snagglewest
  NEWA Auto-Search Command Line Interface (CLI) UncleJohnsBand 40 37,827 2018-05-09, 12:50 AM
Last Post: jksmurf
  Can't log on to NEWA after 3.9.2 update UncT 12 6,102 2016-11-30, 07:47 PM
Last Post: mvallevand
  EPGEventDisplay - Adding web search link sle118 0 2,034 2015-11-02, 03:11 PM
Last Post: sle118
  NEWA missing scheduled auto-record shows? jksmurf 1 2,192 2015-09-16, 02:49 PM
Last Post: ACTCMS
  Duplicate recording Scheduled in NEWA? jksmurf 17 6,180 2015-01-10, 02:49 AM
Last Post: UncleJohnsBand
  Auto-Search? snagglewest 11 5,191 2014-12-17, 01:46 PM
Last Post: UncleJohnsBand
  NEWA Auto scheduling - Wishlist mvallevand 0 1,596 2014-06-19, 09:08 PM
Last Post: mvallevand
  How to search only for programs or episodes marked as (* New *) jfestrada 2 1,802 2014-02-27, 03:31 AM
Last Post: UncleJohnsBand

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

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

Linear Mode
Threaded Mode