Kodi Community Forum
Zap2xml for ATSC in OpenELEC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167)
+---- Forum: Tvheadend (https://forum.kodi.tv/forumdisplay.php?fid=168)
+---- Thread: Zap2xml for ATSC in OpenELEC (/showthread.php?tid=267022)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48


RE: Zap2xml for ATSC in OpenELEC - mxlance - 2017-08-22

This log is from a fresh install of 0.7.3

https://ln.sync.com/dl/4282491f0/mk2p2spk-ujkss5sq-2nx9rf9x-kpwzpkhe

no xmltv.xml is created

I then placed an empty xmltv.xml

tvheadend log


2017-08-22 09:54:05.492 xmltv: /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: grab /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml
2017-08-22 09:54:05.494 spawn: Executing "/storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml"
2017-08-22 09:54:10.222 xmltv: /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: grab took 5 seconds
2017-08-22 09:54:10.222 xmltv: /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: parse took 0 seconds
2017-08-22 09:54:10.222 xmltv: /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: channels tot= 0 new= 0 mod= 0
2017-08-22 09:54:10.222 xmltv: /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: brands tot= 0 new= 0 mod= 0
2017-08-22 09:54:10.222 xmltv: /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: seasons tot= 0 new= 0 mod= 0
2017-08-22 09:54:10.222 xmltv: /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: episodes tot= 0 new= 0 mod= 0
2017-08-22 09:54:10.222 xmltv: /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: broadcasts tot= 0 new= 0 mod= 0


Anything else I can try for you


RE: Zap2xml for ATSC in OpenELEC - edit4ever - 2017-08-23

OK - log shows a definite login error to the site. Adding the xmltv.xml file doesn't matter because data isn't being donwloaded - you're just seeing the result of the tvheadend system parsing the empty file.

What I need to figure out is what is happening when you login that is different. Just to confirm - v0.7.1 is working for you (try a clean install) but v0.7.3 is not?


RE: Zap2xml for ATSC in OpenELEC - mxlance - 2017-08-23

correct.
i am going to revert to v0.7.1 now if i have a problem i will let you know
thank you


RE: Zap2xml for ATSC in OpenELEC - mxlance - 2017-08-23

After reverting to v0.7.1 things did not work.

I found that I was having problems with my zap2it login.
I had to re-enter my username/email again, update and resend a confirmation

v0.7.1 is working again. Not sure if it was the issue all along or not. I will not have time to check v0.7.3 again for a few days. When I do I will report what happens

thanks for this add-on and all your work to keep it maintained.


RE: Zap2xml for ATSC in OpenELEC - edit4ever - 2017-08-23

Thanks for the update!


RE: Zap2xml for ATSC in OpenELEC - stephr1 - 2017-08-26

Didn't think I'd be back here.....but here I am....and am glad to see the on-going work for this add-on. Thanks for that.

Have run into a couple of problems, one prob'ly related to trying to use openvpn w/HDHomeRun tuners (won't work unless using some fairly specific workarounds Sad The other may be a result of upgrading OSMC/Debian.

Not sure when it actually occurred, but I discovered my tuners had become disabled (no idea if that was related to openvpn, tho...maybe due to the OSMC upgrade). As a result, guide updates stopped happening. The last guide update was ~12:30PM on 8/23 and was most likely due to a system reset (my zap2xml update is scheduled for 3:30AM).

I came back here to see if I could resolve the problem and discovered zap2xml has been revved (been quite some time), so I updated to v0.7.1. I've tried to update the guide a couple of times (by restarting tvheadend) since then and no go. I can see the tuners light up as they're accessed, but my tvguide.xml file isn't updated. If I try to open tvguide.xml after the update is completed from my Win 10 sys using wordpad, I'm told the file can't be read and then crashes the RPI 3/OSMC system (can no longer see the RPI 3 from the Win 10 sys and if I try to execute a command line instruction from terminal, it says "No such file or directory") and I have to do a hard reset.

Here's my log output from the last attempted update yesterday (logfiles aren't getting updated anymore either):

zap2xml.log (under .kodi/userdata/addon_data/script.module.zap2xml/):

Traceback (most recent call last):
File "/home/osmc/.kodi/addons/script.module.zap2xml/zap2xml.py", line 101, in <module>
import mechanize
ImportError: No module named mechanize

zap2xml.log (under .kodi/addons/script.module.zap2xml/):

2017-08-25 21:55:52,429 ('Linux', 'htpc_sys', '4.9.29-9-osmc', '#1 SMP PREEMPT Sat Jul 29 01:44:42 UTC 2017', 'armv7l', '')

(NOTE: The date in the zap2xml.log is the last date the logfile was updated even tho I've tried a couple of updates since then).

I am using "hard" addresses for pointers in tv_grab_zap2xml since I had problems in the past with variables:

ADDON_HOME="/home/osmc/.kodi/userdata/addon_data/script.module.zap2xml"
ADDON_DIR="/home/osmc/.kodi/addons/script.module.zap2xml"
ADDON_SETTINGS="$ADDON_HOME/settings.xml"
XMLTV_OUTPUT="/home/osmc/.xmltv/tvguide.xml"

Any ideas as to what happened? Thx and cheers.....


RE: Zap2xml for ATSC in OpenELEC - edit4ever - 2017-08-26

looks like the mechanize addon is missing - not sure why that would have been changed from your working system. It should automatically install when you load the zap2xml addon - unless osmc doesn't have it in their repo.

You can manually add the file and see what happens: https://www.dropbox.com/s/pc6poko4fase3z2/script.module.mechanize.zip?dl=0

Let me know if that fixes it. If so - then something needs to be done on the OSMC side to get the mechanize addon to load.


RE: Zap2xml for ATSC in OpenELEC - stephr1 - 2017-08-27

Thanks.I kinda thought that and will check it out and let you know.

Not sure why it would go missing, either...unless when OSMC last updated/upgraded it saw the mechanize addon as unacceptable for some reason. Not sure why that would happen, but who knows.

Cheers....

(2017-08-26, 22:00)edit4ever Wrote: looks like the mechanize addon is missing - not sure why that would have been changed from your working system. It should automatically install when you load the zap2xml addon - unless osmc doesn't have it in their repo.

You can manually add the file and see what happens: https://www.dropbox.com/s/pc6poko4fase3z2/script.module.mechanize.zip?dl=0

Let me know if that fixes it. If so - then something needs to be done on the OSMC side to get the mechanize addon to load.



RE: Zap2xml for ATSC in OpenELEC - stephr1 - 2017-08-28

A couple of things I found. 1st, my tvguide.xml file was corrupted and that's why the system seemed to crash. I also tried accessing the file with nano on the RPI and when it crashed again, I figured the file was the problem.

Checked and confirmed that there is a script.module.mechanize folder in the /osmc/.kodi/addons directory. I've not verified that all the files are there, but I'm going to assume they are. In the addon.xml file it shows ver 0.2.6.

I just did a reboot (after the last crash trying to read my tvguide.xml file Sad and then restarted tvheadend. No tvguide.xml (wonder if going somewhere else?) but zap2xml.log files were updated.

zap2xml.log files:

Under /osmc/.kodi/addons/script.module.zap2xml

2017-08-27 17:51:26,556 ('Linux', 'htpc_sys', '4.9.29-9-osmc', '#1 SMP PREEMPT Sat Jul 29 01:44:42 UTC 2017', 'armv7l', '')

Under /osmc/.kodi/userdata/addon_data/script.module.zap2xml

Traceback (most recent call last):
File "/home/osmc/.kodi/addons/script.module.zap2xml/zap2xml.py", line 101, in <module>
import mechanize
ImportError: No module named mechanize

I ran tv_grab_zap2xml from the command line and usually I see the listings go flying past on the screen. This time, however, nothing. May explain why redirecting the output of tv_grab_zap2xml to tvguide.xml results in a 0 byte file. This is new.

I'll get into zap2xml.py and see if anything pops out at me. If you can think of anything...thanks....

(2017-08-27, 00:07)stephr1 Wrote: Thanks.I kinda thought that and will check it out and let you know.

Not sure why it would go missing, either...unless when OSMC last updated/upgraded it saw the mechanize addon as unacceptable for some reason. Not sure why that would happen, but who knows.

Cheers....

(2017-08-26, 22:00)edit4ever Wrote: looks like the mechanize addon is missing - not sure why that would have been changed from your working system. It should automatically install when you load the zap2xml addon - unless osmc doesn't have it in their repo.

You can manually add the file and see what happens: https://www.dropbox.com/s/pc6poko4fase3z2/script.module.mechanize.zip?dl=0

Let me know if that fixes it. If so - then something needs to be done on the OSMC side to get the mechanize addon to load.



RE: Zap2xml for ATSC in OpenELEC - edit4ever - 2017-08-28

I can test the combination on my end - what version of OSMC are you running?


RE: Zap2xml for ATSC in OpenELEC - stephr1 - 2017-08-28

OSMC Version: 2017.08-1

Fixed part of the problem. Have to remember that the default path defined in zap2xml.py for 'kodiPath' is invalid for my system (no 'storage' directory). Once I corrected that and restarted tvheadend the 'import mechanize' error went away and the zap2xml.log(s) filled with info. Still no tvguide.xml file/listing output (forgot to mention I erased the corrupted version of the file yesterday). Here's what the logfiles look like (BTW - Anyway to attach the logfiles instead having to fit them inline with the msg?):

~/kodi/addons/script.module.zap2xml/zap2xml.log -

2017-08-28 10:06:16,573 ('Linux', 'htpc_sys', '4.9.29-9-osmc', '#1 SMP PREEMPT Sat Jul 29 01:44:42 UTC 2017', 'armv7l', '')
2017-08-28 10:06:16,575 Found openelec node name or /home/osmc/.kodi/addons/
2017-08-28 10:06:16,650 Reading config file: /home/osmc/.kodi/addons/script.module.zap2xml/.zap2xmlrc

2017-08-28 10:06:16,774 [D] Parsing: SH016159020000
2017-08-28 10:06:16,776 [I] Parsing: SH016159020000
2017-08-28 10:06:16,779 [STNNUM] Parsing: 76387
2017-08-28 10:06:17,119 [D] Parsing: SH022215760000

...snip, snip, snip.....then this.....

2017-08-28 10:06:21,612 [I] Parsing: EP017817780014
2017-08-28 10:06:21,632 Logging in as [email protected]

2017-08-28 10:06:21,633 http://tvschedule.zap2it.com/tvlistings/ZCLogin.do?method=getStandAlonePage&aid=tvschedule

2017-08-28 10:06:22,591 Form:
<zbSearchForm GET http://tvschedule.zap2it.com/tvlistings/ZCSearch.do application/x-www-form-urlencoded
<TextControl(searchTerm=)>
<HiddenControl(searchType=simple) (readonly)>
<HiddenControl(aid=tvschedule) (readonly)>
<SubmitControl(=Search) (readonly)>>:Function: loginZAP :Line: 567
2017-08-28 10:06:22,599 Form:
<zbSearchFormAdv GET http://tvschedule.zap2it.com/tvlistings/ZCSearch.do application/x-www-form-urlencoded
<TextControl(searchTerm=)>
<SelectControl(searchField=[*name, episodeName, episodeName, description, crew])>
<SelectControl(searchGenre=[*, movie, sports, children, special, news])>
<CheckboxControl(searchHD=[true])>
<HiddenControl(searchType=advanced) (readonly)>
<HiddenControl(aid=tvschedule) (readonly)>
<SubmitControl(=Search) (readonly)>>:Function: loginZAP :Line: 567
2017-08-28 10:06:22,605 Form:
<zcLoginForm POST http://tvschedule.zap2it.com/tvlistings/ZCLogin.do?category= application/x-www-form-urlencoded
<TextControl(username=)>
<PasswordControl(password=)>
<SubmitControl(<None>=Login) (readonly)>
<IgnoreControl(loginReset=<None>)>
<HiddenControl(zc-login-forwardURL=) (readonly)>>:Function: loginZAP :Line: 567
2017-08-28 10:06:24,314 Matched .*Logout of your Zap2it account.*:Function: loginZAP :Line: 588
2017-08-28 10:06:24,315 Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?pgmId=EP013009920170
2017-08-28 10:06:25,203 :Function: getURL :Line: 225
2017-08-28 10:06:25,207 Traceback (most recent call last):
File "/home/osmc/.kodi/addons/script.module.zap2xml/zap2xml.py", line 218, in getURL
data = br.open(url).get_data()
File "/home/osmc/.kodi/addons/script.module.mechanize/lib/mechanize/_mechanize.py", line 203, in open
return self._mech_open(url, data, timeout=timeout)
File "/home/osmc/.kodi/addons/script.module.mechanize/lib/mechanize/_mechanize.py", line 255, in _mech_open
raise response
httperror_seek_wrapper: HTTP Error 500: Internal Server Error

2017-08-28 10:06:26,209 Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?pgmId=EP013009920170
2017-08-28 10:06:27,029 :Function: getURL :Line: 225
2017-08-28 10:06:27,031 Traceback (most recent call last):
File "/home/osmc/.kodi/addons/script.module.zap2xml/zap2xml.py", line 218, in getURL
data = br.open(url).get_data()
File "/home/osmc/.kodi/addons/script.module.mechanize/lib/mechanize/_mechanize.py", line 203, in open
return self._mech_open(url, data, timeout=timeout)
File "/home/osmc/.kodi/addons/script.module.mechanize/lib/mechanize/_mechanize.py", line 255, in _mech_open
raise response
httperror_seek_wrapper: HTTP Error 500: Internal Server Error

2017-08-28 10:06:28,032 Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?pgmId=EP013009920170
2017-08-28 10:06:28,859 :Function: getURL :Line: 225
2017-08-28 10:06:28,860 Traceback (most recent call last):
File "/home/osmc/.kodi/addons/script.module.zap2xml/zap2xml.py", line 218, in getURL
data = br.open(url).get_data()
File "/home/osmc/.kodi/addons/script.module.mechanize/lib/mechanize/_mechanize.py", line 203, in open
return self._mech_open(url, data, timeout=timeout)
File "/home/osmc/.kodi/addons/script.module.mechanize/lib/mechanize/_mechanize.py", line 255, in _mech_open
raise response
httperror_seek_wrapper: HTTP Error 500: Internal Server Error

2017-08-28 10:06:29,870 Failed to download within 3 retries.
:Function: getURL :Line: 228
2017-08-28 10:06:29,871 Traceback (most recent call last):
File "/home/osmc/.kodi/addons/script.module.zap2xml/zap2xml.py", line 218, in getURL
data = br.open(url).get_data()
File "/home/osmc/.kodi/addons/script.module.mechanize/lib/mechanize/_mechanize.py", line 203, in open
return self._mech_open(url, data, timeout=timeout)
File "/home/osmc/.kodi/addons/script.module.mechanize/lib/mechanize/_mechanize.py", line 255, in _mech_open
raise response
httperror_seek_wrapper: HTTP Error 500: Internal Server Error

2017-08-28 10:06:29,872 [D] Failed to download: EP013009920170
2017-08-28 10:06:29,873 [I] Parsing: EP013009920170
2017-08-28 10:06:29,877 [D] Parsing: EP009488270105
2017-08-28 10:06:29,879 [I] Parsing: EP009488270105

...snip, snip, snip...more of these

2017-08-28 10:07:04,306 [D] Parsing: SH000191120000
2017-08-28 10:07:04,307 [I] Parsing: SH000191120000
2017-08-28 10:07:04,311 Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?pgmId=SH018365140000
2017-08-28 10:07:05,207 [D] Parsing: SH018365140000
2017-08-28 10:07:05,209 Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?rtype=pgmimg&pgmId=SH018365140000
2017-08-28 10:07:07,629 [I] Parsing: SH018365140000
2017-08-28 10:07:07,632 Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?pgmId=SH020640340000
2017-08-28 10:07:08,886 [D] Parsing: SH020640340000

....snip, snip, snip.....

(a few more Error 500 msgs...see above)

Then more parsing....ending with......

2017-08-28 10:33:52,121 Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?rtype=pgmimg&pgmId=EP009311820133
2017-08-28 10:33:52,923 [I] Parsing: EP009311820133
2017-08-28 10:33:52,928 Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?pgmId=EP009311820218

(Looks like one or more parsings never completed)

~/.kodi/userdata/addon_data/script.module.zap2xml/zap2xml.log -

....Mostly parsing like this....

Reading config file: /home/osmc/.kodi/addons/script.module.zap2xml/.zap2xmlrc

[D] Parsing: SH016159020000
[I] Parsing: SH016159020000
[STNNUM] Parsing: 76387
[D] Parsing: SH022215760000
[I] Parsing: SH022215760000

.....snip, snip, snip...then this....

[I] Parsing: EP000441070442
[D] Parsing: EP017817780014
[I] Parsing: EP017817780014
Logging in as [email protected]

http://tvschedule.zap2it.com/tvlistings/ZCLogin.do?method=getStandAlonePage&aid=tvschedule

Matched .*Logout of your Zap2it account.*:Function: loginZAP :Line: 588
Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?pgmId=EP013009920170
:Function: getURL :Line: 225
error<class 'mechanize._response.httperror_seek_wrapper'>
Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?pgmId=EP013009920170
:Function: getURL :Line: 225
error<class 'mechanize._response.httperror_seek_wrapper'>
Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?pgmId=EP013009920170
:Function: getURL :Line: 225
error<class 'mechanize._response.httperror_seek_wrapper'>
Failed to download within 3 retries.
:Function: getURL :Line: 228
error<class 'mechanize._response.httperror_seek_wrapper'>
[D] Failed to download: EP013009920170
[I] Parsing: EP013009920170
[D] Parsing: EP009488270105

....snip, snip, snip...then a lot more parsing ending with this.....

Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?rtype=pgmimg&pgmId=SH017136700000
[I] Parsing: SH017136700000
[D] Parsing: SH018226280000
[I] Parsing: SH018226280000
Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?pgmId=SH017768900000
[D] Parsing: SH017768900000
Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?rtype=pgmimg&pgmId=SH017768900000
[I] Parsing: SH017768900000
[D] Parsing: SH016113570000
[I] Parsing: SH016113570000
Getting: http://tvschedule.zap2it.com/tvlistings/gridDetailService?pgmId=SH017488590000
[D] Parsing: SH017488590000
Getting: http://tvsched

(Again, looks like it never finished Sad

Thanks for your time....Cheers....



(2017-08-28, 16:09)edit4ever Wrote: I can test the combination on my end - what version of OSMC are you running?



RE: Zap2xml for ATSC in OpenELEC - edit4ever - 2017-08-28

Your're downloading xtra details and program icons. Depending on how many channels you have in your lineup - you will need to reduce the number of days to 3 or less and see if it finishes. Then you can add days back. The zap2it servers tens to shutdown with too many download requests. If you want to test - turn off xtra details and icons and download 3 days worth of data - it should finish quickly.

I will check on the storage reference - as I should be able to code that differently. Thanks!

---- Just relooked at the "storage" reference - that is old code that isn't even needed anymore as the two dependent addons are added when the zap2xml addon is installed. I'm going to test on my end - but if you want, go ahead and take out this whole section and see if it works (lines 88-99):

Code:
#set paths to import third party libs
kodiPath = '/storage/.kodi/addons/'
mechLib = 'script.module.mechanize/lib'
soupLib = 'script.module.beautifulsoup/lib'
if re.search('openelec', platform.uname()[1], re.IGNORECASE) or os.path.exists(kodiPath):
    log.pout("Found openelec node name or " + kodiPath,'info',printOut = False)
    if os.path.exists(kodiPath + mechLib):
        sys.path.append(kodiPath + mechLib)
    else: log.pout("Mechanize addon not installed error",'error')
    if os.path.exists(kodiPath + soupLib):
        sys.path.append(kodiPath + soupLib)
    else: log.pout("BeautifulSoup addon not installed error",'error')

Thanks!


RE: Zap2xml for ATSC in OpenELEC - stephr1 - 2017-08-29

OK. Close to back to normal w/14 days and xtra program details. Yay! No errors in log files. tvguide.xml file is being updated with what looks like the right info (will have to chk it out more closely).

Looks like this started out as a corrupt tvguide.xml file (prob'ly happened when I had to do a few hard resets). Then in the middle of this I updated zap2xml (thinking that might solve the problem) and forgot about the zap2xml.py kodi_path issue Sad

Last piece is that OSMC is not seeing/reading the tvguide.xml file. When I go to TV/Guide, the channel nos. and names show up on the left side (prob'ly from tvheadend), but the guide area is blank (or shows "No information available"). Have checked owner and mode settings for the tvguide file. Not sure if this is a link issue or file format issue...or something else. Tho, it does feel like I'm missing something obvious here.

Any thoughts or insights appreciated. Thx...

(2017-08-28, 22:57)edit4ever Wrote: Your're downloading xtra details and program icons. Depending on how many channels you have in your lineup - you will need to reduce the number of days to 3 or less and see if it finishes. Then you can add days back. The zap2it servers tens to shutdown with too many download requests. If you want to test - turn off xtra details and icons and download 3 days worth of data - it should finish quickly.

I will check on the storage reference - as I should be able to code that differently. Thanks!

---- Just relooked at the "storage" reference - that is old code that isn't even needed anymore as the two dependent addons are added when the zap2xml addon is installed. I'm going to test on my end - but if you want, go ahead and take out this whole section and see if it works (lines 88-99):

Code:
#set paths to import third party libs
kodiPath = '/storage/.kodi/addons/'
mechLib = 'script.module.mechanize/lib'
soupLib = 'script.module.beautifulsoup/lib'
if re.search('openelec', platform.uname()[1], re.IGNORECASE) or os.path.exists(kodiPath):
    log.pout("Found openelec node name or " + kodiPath,'info',printOut = False)
    if os.path.exists(kodiPath + mechLib):
        sys.path.append(kodiPath + mechLib)
    else: log.pout("Mechanize addon not installed error",'error')
    if os.path.exists(kodiPath + soupLib):
        sys.path.append(kodiPath + soupLib)
    else: log.pout("BeautifulSoup addon not installed error",'error')

Thanks!



RE: Zap2xml for ATSC in OpenELEC - edit4ever - 2017-08-29

Have you setup the epg source for each of the channels in tvheadend? If yes - then sometimes it's just kodi not refreshing the tvguide screen. Usually a reboot will fix that - once your sure that the tvgde.xml file has completed.


RE: Zap2xml for ATSC in OpenELEC - stephr1 - 2017-08-30

It's not clear that was changed. "Automatically map EPG source" is checked for each enabled channel. Should I set that manually?

I've disabled the scheduled (overnight) update for the moment until I sort things out (Had another corrupted tvguide.xml file which crashed the system when I tried to open it). Yesterday afternoon I did a system reboot and tvguide.xml seemed to update without any corruptions in it (tho, that has been intermittent). The zap2xml.log (.kodi/addons/....) has this in it:

2017-08-30 08:00:42,349 ('Linux', 'htpc_sys', '4.9.29-9-osmc', '#1 SMP PREEMPT Sat Jul 29 01:44:42 UTC 2017', 'armv7l', '')
2017-08-30 08:00:42,350 Found openelec node name or /home/osmc/.kodi/addons/
2017-08-30 08:00:42,428 Reading config file: /home/osmc/.kodi/addons/script.module.zap2xml/.zap2xmlrc

...snip....

2017-08-30 08:00:49,173 [STNNUM] Parsing: 35242
2017-08-30 08:00:49,499 [STNNUM] Parsing: 21650
2017-08-30 08:00:49,873 [STNNUM] Parsing: 19575
2017-08-30 08:00:50,381 [1/56] Parsing: /home/osmc/.kodi/addons/script.module.zap2xml/cache/1504098000000.html.gz
2017-08-30 08:00:51,428 [2/56] Parsing: /home/osmc/.kodi/addons/script.module.zap2xml/cache/1504119600000.html.gz
2017-08-30 08:00:52,455 [3/56] Parsing: /home/osmc/.kodi/addons/script.module.zap2xml/cache/1504141200000.html.gz
2017-08-30 08:00:53,441 [4/56] Parsing: /home/osmc/.kodi/addons/script.module.zap2xml/cache/1504162800000.html.gz
2017-08-30 08:00:54,453 [5/56] Parsing: /home/osmc/.kodi/addons/script.module.zap2xml/cache/1504184400000.html.gz
2017-08-30 08:00:55,496 [6/56] Parsing: /home/osmc/.kodi/addons/script.module.zap2xml/cache/1504206000000.html.gz

...snip....

2017-08-30 08:01:43,836 [55/56] Parsing: /home/osmc/.kodi/addons/script.module.zap2xml/cache/1505264400000.html.gz
2017-08-30 08:01:44,807 [56/56] Parsing: /home/osmc/.kodi/addons/script.module.zap2xml/cache/1505286000000.html.gz
2017-08-30 08:01:44,807 Downloaded 0 bytes in 0 http requests.

2017-08-30 08:01:44,808 Writing XML file: /home/osmc/.xmltv/tvguide.xml

It looks OK. There are 28 entries for "PARSING: XXXXX" and 56 entires for "Parsing: /home/osmc/.kodi/...".. Does that make sense relative to each other? Also, anything of concern with the "Downloaded 0 bytes in 0 http requests" at the end?

The zap2xml.log (.kodi/userdata/addon_data....) contains entries very similar (exact?) to the other zap2xml.log file except the last few lines are:

...snip....

[35/56] Parsing: /home/osmc/.kodi/addons/script.module.zap2xml/cache/1504832400000.html.gz
[36/56] Parsing: /home/osmc/.kodi/addons/script.module.zap2xml/cache/1504854000000.html.gz
[37/56] Parsing: /home/osmc/.kodi/addons/script.module.zap2xml/cache/150487560 (*NOTE: This is the last line in the file)

The other thing about this (aside from no info in TV/Guide) is if I log in thru the OSMC web interface, Electronic Program Guide has info, but appears only for 1 channel - 38.4 (it is enabled).

In case it helps, here's a bit of the latest tvguide.xml file:

NOTE: The 1st part of the channel info does cover all the channels I've enabled.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tv SYSTEM "xmltv.dtd">

<tv source-info-url="http://tvschedule.zap2it.com/" source-info-name="zap2it.com" generator-date="2017-08-30 08:17:47.878140" generator-info-name="script.module.zap2xml" generator-info-url="https://github.com/edit4ever/script.module.zap2xml">
<channel id="I65632.labs.zap2it.com">
<display-name>1.1 KAXTLD</display-name>
<display-name>1.1</display-name>
<display-name>KAXTLD</display-name>
</channel>
<channel id="I19571.labs.zap2it.com">
<display-name>2.1 KTVUDT</display-name>
<display-name>2.1</display-name>
<display-name>KTVUDT</display-name>
</channel>
<channel id="I76387.labs.zap2it.com">
<display-name>2.1 KTVULD</display-name>
<display-name>2.1</display-name>
<display-name>KTVULD</display-name>
<icon src="http://images.zap2it.com/station_logo/fox_low_power.gif" />
</channel>

...snip....

NOTE: This second part seems to provide channel descriptions (No. of days = 14)

<programme start="20170830060000 -0700" stop="20170830140000 -0700" channel="I65632.labs.zap2it.com">
<title lang="en">What 's On</title>
<desc lang="en">What 's On </desc>
<episode-num system="dd_progid">SH01615902.0000</episode-num>
<previously-shown />
</programme>
<programme start="20170830140000 -0700" stop="20170830160000 -0700" channel="I65632.labs.zap2it.com">
<title lang="en">What 's On</title>
<desc lang="en">What 's On </desc>
<episode-num system="dd_progid">SH01615902.0000</episode-num>
<previously-shown />
</programme>
<programme start="20170830160000 -0700" stop="20170830170000 -0700" channel="I65632.labs.zap2it.com">
<title lang="en">Ask Dr. Nandi</title>
<desc lang="en">Ask Dr. Nandi , Dr. Partha Nandi digs deep into medical topics with the aim of improving people's health.</desc>
<episode-num system="dd_progid">SH01611357.0000</episode-num>
<previously-shown />

...snip, snip...at the end.....

</programme>
<programme start="20170903090000 -0700" stop="20170903093000 -0700" channel="I99563.labs.zap2it.com">
<title lang="en">Eco Company</title>
<sub-title lang="en">The Big Green Bus</sub-title>
<desc lang="en">Eco Company , "The Big Green Bus" Students discuss sustainability.</desc>
<episode-num system="dd_progid">EP01173211.0055</episode-num>
<previously-shown />
</programme>
<programme start="20170903093000 -0700" stop="20170903100000 -0700" channel="I99563.labs.zap2it.com">
<title lang="en">Eco Company</title>
<sub-title lang="en">Mr. Eco</sub-title> (NOTE: Last line in file)

Looks like the tvguide.xml file was never completed (maybe why OSMC never displays it...missing xml code info). It's ~13MB in size (when it was working, it was ~18MB)

Any insight/pointers? Any other info I can provide?

I'm getting to the point of thinking maybe I should backup all my videos/tv shows stored in the RPI 3 system and rebuild the RPI 3/OSMC system from the ground up (hopefully I won't have to do that Sad

Thanks and cheers.....


(2017-08-29, 01:46)edit4ever Wrote: Have you setup the epg source for each of the channels in tvheadend? If yes - then sometimes it's just kodi not refreshing the tvguide screen. Usually a reboot will fix that - once your sure that the tvgde.xml file has completed.