Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: EPG update at Kodi (or Windows) startup

  1. #11
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    90,418
    Quote Originally Posted by mvallevand View Post
    There is a good post here for xmltv https://forum.team-mediaportal.com/t...at-xml.137808/ but integration with Kodi is difficult in the power off scenario.
    Hopefully that'll give him multiple days, then it's largely problem solved. (just needs to either run it over night, or in PostStartup.bat, or once a day via Windows Scheduler etc)

  2. #12
    Join Date
    May 2006
    Location
    Canada
    Posts
    28,512
    His approach without any automation is the problem I am talking. Post Startup EPG updates (potentially multiple times daily) and Kodi EPG channel.listings loads will be out of sync at startup and he can't necessarily just turn on the PC and start using Kodi.


    Martin

  3. #13
    Join Date
    Jun 2019
    Location
    France
    Posts
    5
    Hi again,

    I have a minimum requirements setup working with the broadcast epg i.e. a "nextpvr.exe -updateepgonly" command runs at service startup (which is at boot time) via c:\users\public\NPVR\scripts\poststartup.bat and also every hour via task scheduler while the PC is running.

    I've figured out that my epg, rather than a few hours worth of data, only provides the current show and the next show regardless of how long those shows are, so for example if a given channel happens to be almost at the end of one show and the next show is only a few minutes long (like a weather report) then the epg for that channel at that time is almost empty and I can't tell what might be starting a few minutes later.

    To ensure that at all times I have the current and next show I'd have to run the epg update almost constantly and I'm not going to do that. For now, until I investigate the better epg solutions you've suggested, running it every hour does the job for most situtations.

    PS: getting the bat file to run via task scheduler was ridiculously difficult. First my antivirus (Avast) silently quarantined both the task and the batch file (i.e. they just vanished!) and then to get the cmd window to run silently in the background I tweaked a setting which made my antivirus intercept it (this time not silently) saying it was an "IPD.Generic" trojan! Pain in the neck that was.

  4. #14
    Join Date
    May 2006
    Location
    Canada
    Posts
    28,512
    To answer your original question to make Kodi sync more often look at https://kodi.wiki/view/Advancedsettings.xml#epg and play with

    <cleanupinterval>900</cleanupinterval>
    <updateemptytagsinterval>60</updateemptytagsinterval>

    I'm thinking if you clean up quickly then the database will be empty for that channel earlier and Kodi will make a request to NextPVR more frequently.

    Martin

  5. #15
    Join Date
    Jun 2019
    Location
    France
    Posts
    5
    That's awesome, thanks Martin. I've put those Kodi parameters in place (with cleanupinterval=300) and I'm keeping an eye on the behaviour.

    I caved and increased the frequency of the bat file execution in task scheduler to every 15 minutes. (I failed to mention earlier that I've put the Seconds per Frequency NextPvr setting back to 10 seconds which means each update now takes about a couple of minutes)

  6. #16
    Join Date
    Nov 2003
    Location
    NextPVR HQ, Wellington, New Zealand
    Posts
    90,418
    Honestly, that sounds like it sucks

    I'd focus on getting xmltv going.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •