NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support macOS v
« Previous 1 2 3 4 Next »
UpdateEPG script

 
  • 0 Vote(s) - 0 Average
UpdateEPG script
rjbeep
Offline

Junior Member

Posts: 47
Threads: 13
Joined: Mar 2005
#1
2019-12-08, 09:28 PM (This post was last modified: 2019-12-08, 09:56 PM by rjbeep.)
I found it in the logs:

2019-12-08 15:49:48.966 [INFO][26] About to update EPG
2019-12-08 15:49:48.966 [DEBUG][26] No /Users/USERNAME/.NPVR-data/scripts/UpdateEPG.sh file found
2019-12-08 15:49:48.974 [DEBUG][26] Will process xmltv file: ../EPG/xmltv.xml

still appreciate any other info re permissions, ownership, etc. to save me the experimenting if anybody has some experience with this on the Mac already.

thanks!

--------------
hi folks,

could somebody provide an example of an UpdateEPG script for MacOS?

Here's what I run manually to create my xmltv.xml file....

export PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin
./zap2xml.pl -o ./xmltv.xml -u USERNAME -p PASSWORD -S 1 -D -A "new live" -E "amp apos quot lt gt" -O -F &


I just need to know exactly what file name to use in the .NPVR-data/scripts directory, plus any other specific requirements, in order to make sure it the NPVR server will run it for me every night.

thanks for any help!
rjb
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,106
Threads: 957
Joined: May 2006
#2
2019-12-08, 10:20 PM
You need to use fully qualified paths which you have as ./

An easy way to get them from the shell if you don't know them is

realname ./zap2xml.pl

Personally I'd create the xmltv file as

/Users/USERNAME/.NPVR-data/xmltv.xml

Don't forget to mark the sh file executable with chmod +x Update.Epg.sh

Martin
rjbeep
Offline

Junior Member

Posts: 47
Threads: 13
Joined: Mar 2005
#3
2019-12-09, 03:29 AM
(2019-12-08, 10:20 PM)mvallevand Wrote: You need to use fully qualified paths which you have as ./

An easy way to get them from the shell if you don't know them is

realname ./zap2xml.pl

Personally I'd create the xmltv file as

/Users/USERNAME/.NPVR-data/xmltv.xml

Don't forget to mark the sh file executable with chmod +x Update.Epg.sh

Martin

Hi Martin,

Thanks very much for the tips!

best regards,
rjb
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,106
Threads: 957
Joined: May 2006
#4
2019-12-11, 06:56 PM
A couple of other tips

- When you have finished testing add -q to the zap2xml script to not send output to nrecord.log. You might want to consider > /dev/null just in case

- You don't want the & at the end of your script there is no need to get the console back.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



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

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

Linear Mode
Threaded Mode