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
1 2 3 4 5 … 47 Next »
NEWA Auto-Search Command Line Interface (CLI)

 
  • 0 Vote(s) - 0 Average
NEWA Auto-Search Command Line Interface (CLI)
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#1
2010-08-23, 05:15 AM (This post was last modified: 2011-10-15, 03:00 AM by UncleJohnsBand.)
Attached is the first release of the command line interface to run auto searches used by NEWA that are flagged for auto-search (set reminders....but there is none at this point) or auto-record (record matching shows automatically).

The wiki has the explanation of what Auto-Search/Record can do as well as how to use this command line programme to run your saved Auto-Searches outside of EWA via your favorite scheduling package.

Post any results/issues you find in this thread....

Thanks.

[Edit] 2011-10-14: Updated to latest NEWA Schedule class which includes day filtering and several bug fixes. Just replace your existing files.
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
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#2
2010-08-23, 06:45 AM
so would I understand matters correctly if I thought I could put this command into the new PostUpdateEPG.bat to have the auto-record processing done each morning after the EPG update completes?
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
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#3
2010-08-23, 02:01 PM
johnsonx42 Wrote:so would I understand matters correctly if I thought I could put this command into the new PostUpdateEPG.bat to have the auto-record processing done each morning after the EPG update completes?
I don't think this is practical, unless you put a one hour delay into PostUpdateEPG.bat before calling the CLI.

From the wiki
Quote:If set, the Auto-Search/Record feature will only run one time per day. It will only run when at least 1 hour has elapsed since your scheduled EPG update time for that day. This helps ensure that your searches are executed against the most recent EPG load and only run one time each day.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#4
2010-08-23, 04:25 PM
ah, somewhere I thought I had understood that the CLI auto-search would not be restricted by the one hour delay time.

thank you for clarifying that.
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
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#5
2010-08-23, 04:42 PM
ACTCMS Wrote:I don't think this is practical, unless you put a one hour delay into PostUpdateEPG.bat before calling the CLI.

From the wiki

johnsonx42 Wrote:ah, somewhere I thought I had understood that the CLI auto-search would not be restricted by the one hour delay time.

thank you for clarifying that.

I just looked how the code in NEWA kicks off the auto-search logic....it does wait until 1 hour after the epg update time.....I think I should port this logic into the CLI.

Thoughts?
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
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#6
2010-08-23, 05:31 PM
My thought would be this:

If I run a command to start the auto-record search, it ought to just go ahead and do it... trust that I have executed the command after the EPG update is complete. Things like this are precisely what the PostUpdateEPG.bat is for.

Also, let's say the command is executed and the EPG udpate for the day isn't completed: then it runs against yesterday's EPG data, which was good enough yesterday so it can't be that far off today.
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
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#7
2010-08-23, 05:45 PM
johnsonx42 Wrote:My thought would be this:

If I run a command to start the auto-record search, it ought to just go ahead and do it... trust that I have executed the command after the EPG update is complete. Things like this are precisely what the PostUpdateEPG.bat is for.

Also, let's say the command is executed and the EPG udpate for the day isn't completed: then it runs against yesterday's EPG data, which was good enough yesterday so it can't be that far off today.

The current CLI code checks to see if the auto-record processing has run for today (there is a date stored in the config-web.xml file that NEWA uses) and if it hasn't run that day it will call the auto-record logic and then update the last run date. If it has already run then it will just write to the log that it has already been run for the day and will not call the auto-record logic.

This is needed so that users that are not using the CLI & just rely on the auto-processing built into accessing NEWA do not have the auto-record execute every time they access NEWA.....depending on the number of searches that are set as auto-record, the number of channels and the number of matches found it can be a long process.

So if you set it up in your postepg processing it will run fine.....you are correct about what occurs if it runs and the epg update has not yet run......it will simply perform the search against a day-old EPG.....However....it does setup a hole if the EPG update for the day has not run. If per-chance an event comes in with a match for the search that falls on today you would miss the recording.

I agree.....that if this is in the postepg processing file the above should not be an issue.

I am going to open a method in the web services to call the auto-search logic....but there I think I will do what is in NEWA login process and ensure that it is a least an hour past the EPG update time that the user sets in the config setting of NPVR.
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
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#8
2010-08-23, 07:24 PM
(grrr, post disappeared)...

Myself, I would lke a CLI to do as it is told "now". Let windows GUI's make decisions for users, but a CLI to do as it is told.
Possibly a parameter could be used to alter it's operation i.e. /f for forcing a a scan/update and blank to let the CLI decide.

Martin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,849
Threads: 954
Joined: May 2006
#9
2010-08-23, 08:21 PM
UJB and I are working out a way for users to initiate the auto-record process from SearchLite. Optionally SearchLite will start then proces whenever NextPVR is launched and whenever it's been 24h it will run.

Martin
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#10
2010-08-23, 08:33 PM
so then if SearchLite is installed, then there will be no need to run the auto-search cli command separately?
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)

Pages (5): 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Broken X-NEWA Info Link on NextPVR.com cweseloh 4 2,659 2020-05-02, 01:02 AM
Last Post: cweseloh
  Episode search missing in 4.2.4 UncT 4 3,093 2019-03-08, 06:08 PM
Last Post: UncT
  gbpvr.com still somewhere in the NEWA code? jksmurf 0 2,051 2019-02-26, 01:29 AM
Last Post: jksmurf
  NEWA scheduled recording update ability broken in 4.2.2 snagglewest 0 2,010 2018-07-11, 12:12 AM
Last Post: snagglewest
  Where does NEWA read the Show name from in the NEWA Web App? jksmurf 3 3,092 2018-07-03, 03:26 AM
Last Post: jksmurf
  Newa snaitaz 8 4,666 2018-05-17, 09:30 PM
Last Post: sub
  Classic web interface issues turndave 3 3,474 2017-12-18, 04:07 AM
Last Post: turndave
  NEWA modern "NEW" page missing urls??? snagglewest 3 3,384 2017-12-03, 12:48 AM
Last Post: snagglewest
  Difference between NPVR and NEWA recordings lists Bobins 4 5,067 2017-09-27, 10:16 PM
Last Post: Bobins
  Legacy NEWA stu2j 4 4,519 2017-07-19, 12:21 AM
Last Post: stu2j

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

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

Linear Mode
Threaded Mode