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 … 353 354 355 356 357 … 433 Next »
2.1.4 Is -UpdateEPGOnly working from command line?

2.1.4 Is -UpdateEPGOnly working from command line?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#11
2011-07-06, 06:47 AM
Buster Wrote:Might be getting confused here. We tend to use N-PVR for watching recorded Freeview TV (Terrestrial).
All I've done in the past is copy anything not yet watched into the Video folder and watch from there while any new recordings go to the Recording directory.

My problem is that the 'TV Guide' screen shows a matrix of 'no show details'.
Your problem is occurring because there is a field missing in your database.

Quote:2011-07-06 17:24:40.993 [ERROR][5] Unexpected error saving listing: System.Data.SQLite.SQLiteException: SQLite error
table EPG_EVENT has no column named dvb_service_event_id

Either of my suggestions from above should fix it, then you'll be good to go.
Buster
Offline

Junior Member

Posts: 6
Threads: 1
Joined: Dec 2008
#12
2011-07-06, 07:22 AM
This is true. Your second suggestion worked for me. Thanks.
skinny
Offline

Member

Posts: 68
Threads: 13
Joined: May 2007
#13
2011-07-06, 11:05 AM
A set of log files is attached after running through the procedure describe below
When UpdateEPGOnly is run from the command line, it only seems to take effect after NPVR is restarted.


Fresh start of NPVR
Empty EPG from Settings Menu
Check TV Guide is empty
Run NPVR.exe -UpdateEPGOnly from command prompt
No change seen in TV Guide
Exit NPVR
NPVR1.log

Restart NPVR, immediately check TV Guide and it is populated
Empty EPG from Settings Menu
Check TV Guide is empty
Exit NPVR
NPVR2.log

Restart NPVR, TV Guide is still empty
Exit NPVR
NPVR3.log

Run NPVR.exe -UpdateEPGOnly from command prompt
Wait 30 sec
Restart NPVR, the TV Guide is populated
NPVR4.log

Empty EPG from Settings Menu
Check TV Guide is empty
Exit NPVR
NPVR5.log

Run NPVR.exe -UpdateEPG from command prompt
NPVR restarts after 10 seconds and TV Guide is populated
NPVR6.log
Case - Antec Fusion; MB - Gigabyte GA-MA78GM-S2H; Video - AMD HD4350; Tuner - Hauppauge HVR-2200 and Nova-T; CPU - Athlon 64x2 4200; System drive 128GB Intel SSD, WD Greenpower 1TB HDD, Seagate 2TB ; OS - Win7 HP 32-bit
skinny
Offline

Member

Posts: 68
Threads: 13
Joined: May 2007
#14
2011-07-18, 07:24 PM
Unable to resolve the above issue I have started to use UpdateEPG.bat and PostUpdateEPG.bat for the first time.
UpdateEPG.bat runs as expected and the TV Guide is updated but there was an issue with PostUpdateEPG.bat
Quote:From the NRecord.log
2011-07-19 02:01:28.569 [DEBUG][8] About to run C:\Users\Public\NPVR\Scripts\PostUpdateEPG.bat
2011-07-19 02:01:33.580 [DEBUG][8] C:\Users\Public\NPVR\Scripts\PostUpdateEPG.bat has completed

The problem was that the script in PostUpdateEPG.bat did not run. The script is a backup routine, if there is nothing to backup it takes about 2 minutes to execute (not 5 seconds) It did run as expected when I executed PostUpdateEPG.bat manually.

PostUpdateEPG.bat contained these commands
Quote:CD \
CD C:\Program Files\unison
....

Changing to this format seems to have fixed the problem
Quote:CD \
CD "Program Files\unison"
....

Question: is there a resource that helps to write scripts in a format that NPVR can handle?

Cheers
Paul
Case - Antec Fusion; MB - Gigabyte GA-MA78GM-S2H; Video - AMD HD4350; Tuner - Hauppauge HVR-2200 and Nova-T; CPU - Athlon 64x2 4200; System drive 128GB Intel SSD, WD Greenpower 1TB HDD, Seagate 2TB ; OS - Win7 HP 32-bit
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#15
2011-07-18, 07:38 PM (This post was last modified: 2011-07-18, 07:43 PM by johnsonx42.)
the "scripts" are just windows batch files (which are generally equivalent to DOS batch files). they have nothing to do with NPVR, other than the fact that NPVR asks Windows to run them for you. you can find all sorts of info on the internet for batch file commands.

I promise your PostUpdateEPG.bat did not work properly when you ran it manually without the double-quotes in the CD command (necessitated by the space in "program files"). it may have appeared to work, but that would have been strictly by accident.
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
skinny
Offline

Member

Posts: 68
Threads: 13
Joined: May 2007
#16
2011-07-18, 07:46 PM
Quote:I promise your PostUpdateEPG.bat did not work properly when you ran it manually without the double-quotes in the CD command (necessitated by the space in "program files"). it may have appeared to work, but that would have been strictly by accident.

I promise you it did work, on more than one occasion, calling it from a command console as well as from an explorer windowSmile
Case - Antec Fusion; MB - Gigabyte GA-MA78GM-S2H; Video - AMD HD4350; Tuner - Hauppauge HVR-2200 and Nova-T; CPU - Athlon 64x2 4200; System drive 128GB Intel SSD, WD Greenpower 1TB HDD, Seagate 2TB ; OS - Win7 HP 32-bit
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#17
2011-07-18, 07:49 PM (This post was last modified: 2011-07-18, 08:09 PM by johnsonx42.)
genuinely bizarre, as the double-quotes are absolutely required.

edit: I am actually incorrect here, at least on Windows 7 'cd' doesn't require the double-quotes
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,789
Threads: 769
Joined: Nov 2003
#18
2011-07-18, 07:53 PM
NPVR doesnt take any part in processing the contents of these batch files. It just askes Window's to run it, and Windows takes care of the rest.

We've never found a case of it not running being attributed to some NPVR problem. It always ends up being one of two things:
1) script making assumptions about the current working directory or drive. You should explicitly change drive (in multi-drive setups), and explicitly directory to where you want the commands to run from.
2) script running commands that dont work across desktop sessions. The recording service runs as LocalSystem, so isnt able to use WM_COPYDATA etc to pass data to other applications. (ie, no shared clipboard, which some utilities use for passing data around).

From memory, "CD" is a special case and doesnt require quotes around parameters with spaces.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#19
2011-07-18, 08:08 PM
sub Wrote:From memory, "CD" is a special case and doesnt require quotes around parameters with spaces.
yeah, you're right, at least on Windows 7 it does work without the double-quotes (I'm sure this has not always been the case). in that case I have no idea why adding them appeared to fix skinny's problem.
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
skinny
Offline

Member

Posts: 68
Threads: 13
Joined: May 2007
#20
2011-07-19, 04:18 AM
Thanks johnsonx42 & Sub
for future I'll stick with more traditional command line syntax, just in case.
Cheers
Case - Antec Fusion; MB - Gigabyte GA-MA78GM-S2H; Video - AMD HD4350; Tuner - Hauppauge HVR-2200 and Nova-T; CPU - Athlon 64x2 4200; System drive 128GB Intel SSD, WD Greenpower 1TB HDD, Seagate 2TB ; OS - Win7 HP 32-bit
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  HDHomerun recording bizzarely not working Jean0987654321 3 2,096 2021-03-27, 03:23 PM
Last Post: Jean0987654321
  Channels/PIP popups not working 4.2.5 (191014) eastavin 7 2,936 2020-04-20, 03:20 AM
Last Post: eastavin
  Absolute Newbie OTA EPG not working as expected. n8lbv 4 2,675 2020-04-02, 06:03 PM
Last Post: mvallevand
  Web URL Command Failure jcole998 2 1,239 2020-01-26, 06:27 PM
Last Post: jcole998
  Live TV not working jresnick 21 10,488 2020-01-04, 06:26 PM
Last Post: BrettB
  cmd line update urls? pBS 0 1,227 2019-11-30, 11:05 AM
Last Post: pBS
  How to run recording service from command prompt? eastavin 4 2,071 2019-10-31, 01:38 PM
Last Post: eastavin
  Some Channels not working jasonwilliams 7 2,252 2019-08-01, 06:31 PM
Last Post: sub
  NextPVR has Stopped Working rgc101 0 1,150 2019-05-27, 11:24 PM
Last Post: rgc101
  Cancel button not working in web interface antenna 0 998 2019-05-20, 04:45 PM
Last Post: antenna

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

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

Linear Mode
Threaded Mode