NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 11 12 13 14 15 … 34 Next »
[Solved] Xmltv EPG off by 2 hours

 
  • 0 Vote(s) - 0 Average
[Solved] Xmltv EPG off by 2 hours
spleencheesemonkey
Offline

Junior Member

United Kingdom
Posts: 15
Threads: 2
Joined: Jul 2022
#11
2022-09-07, 02:18 PM (This post was last modified: 2022-09-07, 02:18 PM by spleencheesemonkey.)
Good stuff. Almost there I think. Just need a little guidance on the "don't forget to chmod +x PostUpdate.sh" if you'd be so kind?

I run the sed command in the command line?
what exactly am i chmodding? the xmltv.xml file?

Will the guide stay up to date or will this have to be a regular activity done every couple of days/when the guide runs out?
spleencheesemonkey
Offline

Junior Member

United Kingdom
Posts: 15
Threads: 2
Joined: Jul 2022
#12
2022-09-07, 04:08 PM
(2022-09-07, 01:30 PM)mvallevand Wrote: As expected your file is off by two hours, here are some comparison with shows this afternoon.   

Code:
    <programme start="20220907180000 +0000" stop="20220907190000 +0000" channel="ctv2ottawa.ca">
        <title>Ghost Whisperer</title>
        <desc>Melinda helps a troubled comedian, who is haunting the comedy club where he used to perform, who committed suicide. Through communicating with the other spirits and his living girlfriend, Melinda tries to help him remember what lead to his death.Guests: Katey Sagal, Jed Rees..</desc>
    </programme>
    <programme start="20220907190000 +0000" stop="20220907193000 +0000" channel="ctv2ottawa.ca">
        <title>Modern Family</title>
        <desc>Hayley wants to give the family a Christmas gift they will never forget if she can just figure out the perfect time. Meanwhile, Claire is mad that Phil has once again borrowed the family Christmas tree for a house-showing.</desc>
    </programme>
    <programme start="20220907193000 +0000" stop="20220907200000 +0000" channel="ctv2ottawa.ca">
        <title>The Bold and the Beautiful</title>
        <desc>The Forrester and Spectra clans deal with relationships and the world of fashion.</desc>
    </programme>
    <programme start="20220907200000 +0000" stop="20220907210000 +0000" channel="ctv2ottawa.ca">
        <title>The Social</title>
        <desc>A fresh perspective on up-to-the-minute pop culture topics that matter most to Canadians.</desc>
    </programme>

Code:
  <programme start="20220907160000 +0000" stop="20220907170000 +0000" channel="CHRO.hdhomerun.com">
    <title>Ghost Whisperer</title>
    <sub-title>Undead Comic</sub-title>
    <desc>A comic haunts a comedy club in which he used to perform, and Melinda helps him find closure following his suicide.</desc>
    <date>20051216000000 +0000</date>
    <category>Drama</category>
    <episode-num system="xmltv_ns">0 . 11 . </episode-num>
    <icon src="https://img.hdhomerun.com/titles/C185120EN7XQT.jpg" />
  </programme>
  <programme start="20220907170000 +0000" stop="20220907173000 +0000" channel="CHRO.hdhomerun.com">
    <title>Modern Family</title>
    <sub-title>Chirp</sub-title>
    <desc>Claire and Haley are stuck at home sick; the taunting of a chirping smoke detector has Phil preoccupied; Gloria and Manny's surprise visit at Jay's work leads to headaches for him; Cameron takes Lily for a commercial.</desc>
    <date>20101103000000 +0000</date>
    <episode-num system="xmltv_ns">1 . 6 . </episode-num>
    <icon src="https://img.hdhomerun.com/titles/C3560360ENGARG.jpg" />
  </programme>
  <programme start="20220907173000 +0000" stop="20220907180000 +0000" channel="CHRO.hdhomerun.com">
    <title>The Bold and the Beautiful</title>
    <desc>Liam offers his opinion when Hope is invited to a Forrester family dinner; Brooke confides in Liam that Taylor, Steffy and Thomas are conspiring against the Logans.</desc>
    <date>20220907000000 +0000</date>
    <episode-num system="xmltv_ns">34 . 237 . </episode-num>
    <icon src="https://img.hdhomerun.com/titles/C183907EN8LPW.jpg" />
  </programme>
  <programme start="20220907180000 +0000" stop="20220907190000 +0000" channel="CHRO.hdhomerun.com">
    <title>The Social</title>
    <desc>Updated fashions from decades past.</desc>
    <date>20220907000000 +0000</date>
    <episode-num system="xmltv_ns">9 . 1 . </episode-num>
    <icon src="https://img.hdhomerun.com/titles/C10115884ENT7L9.jpg" />
  </programme>

You are going to have to figure out the curl line (it did work fine here) and then you will need to create the PostUpdate.sh file like this and map xmltv.xml to your channel instead of the url

Code:
curl -L 'http:....' -o xmltv.xml
sed -i 's/ +0000"/ -0200"/g' xmltv.xml

I leave it to you to figure out paths and all the rest yourself.  Don't forgot to chmod +x PostUpdate.sh


Fantastic.  You sir, are a genius. 
I figured out (with google help) that I needed to create the script, make it executable, run the script, reimport the listing and guide (as you said), then I had to create a n xmltv channel lineup in the EPG sources section of the guide configuration page.
I also had to change the sed script to PLUS 2hours to make it work.

Thanks so much for your assistance.  A donation will be on it's way.

One final question if I may; How will the EPG be kept up to date?  Is this something I will have to do on a regular basis/when the EPG guide runs out?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,119
Threads: 957
Joined: May 2006
#13
2022-09-07, 04:27 PM
No genius, I screwed up the name, it is UpdateEPG.sh. This script get run every time before NextPVR starts the the actual EPG update so as long as the URL works your guide will be fine.

Martin
spleencheesemonkey
Offline

Junior Member

United Kingdom
Posts: 15
Threads: 2
Joined: Jul 2022
#14
2022-09-07, 04:34 PM
Does that mean I should rename the script from PostUpdate.sh to UpdateEPG.sh?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,119
Threads: 957
Joined: May 2006
#15
2022-09-07, 04:35 PM
Yes.

Martin
« 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
  folder location XMLTV file [LibreElec] retrofan 2 602 2024-08-22, 08:32 AM
Last Post: retrofan
  xmltv file not being read JogG 1 592 2023-07-01, 03:11 PM
Last Post: mvallevand
  [SOLVED] Schedules Direct won't populate my lineup NinthWave 5 967 2023-01-25, 04:03 AM
Last Post: mvallevand
  (solved) Arch/Arm64 DVB/ATSC EPG not available donutschool 1 862 2022-09-24, 02:12 PM
Last Post: mvallevand
  [Solved] Black/black screen with audio when trying to watch HD channels on pi spleencheesemonkey 11 2,907 2022-07-16, 02:14 PM
Last Post: mvallevand
  Possible issue after upgrade to Version: 5.2.7.220410 - Solved mcragoe 3 1,240 2022-04-10, 11:26 PM
Last Post: mcragoe
  Unable to detect xmltv.xml file needed for EPG EPSCREECH 2 1,977 2020-02-02, 10:00 AM
Last Post: EPSCREECH

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

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

Linear Mode
Threaded Mode