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
#1
2022-09-07, 11:24 AM (This post was last modified: 2022-09-07, 04:51 PM by spleencheesemonkey.)
Hi. I’m one of those people who appear to have an issue with the EPG being out of sync with what’s being aired. I have seen previous threads on this where it’s assumed that the OS time zone/daylight savings setting are incorrect. I have checked the time zone in lubuntu and all appears to be correct. I have tried changing the time zone in kodi to no avail.  I have experimented with changing the time zones inlubuntu to 2hrs ahead and still the problem persists. I am based in the U.K. (currently BST). 
I have also tried the “[-2:00] hack when importing the m3u but my iptv provider returns a not authorised error when trying to import the guide that way. 

I should also add that the tv guide in the nextpvr configuration webpage is also incorrect. I am accessing the page from a different pc on the same network where the time zone is also correct.

Please could someone advise the steps I need to go through to provide enough information for a possible fix? Which logs are required from where, and after what actions?
Any help gratefully received.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,122
Threads: 957
Joined: May 2006
#2
2022-09-07, 11:54 AM
Simply changing the timezone doesn't help because the server works in UTC. You'd have to provide some sample XMLTV entries, but inevitably the source will turn out to be wrong. zip it up and post it and I can probably give you a sed script to preprocess it.

Martin
spleencheesemonkey
Offline

Junior Member

United Kingdom
Posts: 15
Threads: 2
Joined: Jul 2022
#3
2022-09-07, 12:17 PM
(2022-09-07, 11:54 AM)mvallevand Wrote: Simply changing the timezone doesn't help because the server works in UTC.  You'd have to provide some sample XMLTV entries, but inevitably the source will turn out to be wrong.  zip it up and post it and I can probably give you a sed script to preprocess it.

Martin

Thanks, Martin. How do I do that? My provider has only provided me with a link to the EPG. Happy to send that to you. Will that work?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,122
Threads: 957
Joined: May 2006
#4
2022-09-07, 12:24 PM
From the Linux command line try

curl -L link -o xmltv.xml

You would need this to preprocess the file anyway.

Martin
spleencheesemonkey
Offline

Junior Member

United Kingdom
Posts: 15
Threads: 2
Joined: Jul 2022
#5
2022-09-07, 12:39 PM (This post was last modified: 2022-09-07, 12:39 PM by spleencheesemonkey.)
Martin, If i insert the full URL (including the bits which have username=xxxxx&password=xxxxx after "-L" I get "-o: command not found"
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,122
Threads: 957
Joined: May 2006
#6
2022-09-07, 12:41 PM (This post was last modified: 2022-09-07, 12:42 PM by mvallevand.)
Trying wrapping the url in single quotes if that doesn't work PM me the link, but I dislike PM's because the forum delete function is a pain.

Martin
spleencheesemonkey
Offline

Junior Member

United Kingdom
Posts: 15
Threads: 2
Joined: Jul 2022
#7
2022-09-07, 12:49 PM
OK. That looks like it's done something. Couldn't tell you what though. There is an xmltv.xml file in my home directory but it is blank and is zero bytes.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,122
Threads: 957
Joined: May 2006
#8
2022-09-07, 01:01 PM
PM me the URL then.

Martin
spleencheesemonkey
Offline

Junior Member

United Kingdom
Posts: 15
Threads: 2
Joined: Jul 2022
#9
2022-09-07, 01:13 PM
Thanks. Done.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,122
Threads: 957
Joined: May 2006
#10
2022-09-07, 01:30 PM (This post was last modified: 2022-09-07, 01:33 PM by mvallevand.)
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
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


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 594 2023-07-01, 03:11 PM
Last Post: mvallevand
  [SOLVED] Schedules Direct won't populate my lineup NinthWave 5 970 2023-01-25, 04:03 AM
Last Post: mvallevand
  (solved) Arch/Arm64 DVB/ATSC EPG not available donutschool 1 863 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,911 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,979 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