Already talked edit4ever about this and he was able to duplicate. Said there should be a fix tomorrow.
Posts by Tinwarble
-
-
Yep, that's what I'm thinking too as it seems to be tied in to zap2epg.
If you set autorecs from Kodi it doesn't do this, and why it may not have been reported. It only happens if you do it from the TVHE UI.
-
Same here. With 4.2.2.32 & 4.2.3.20 you can set a single recording for a program, but attempting to record an entire series it will add everything from the same channel.
-
This is due to trying to grab too many channels/days - zap2it server times out. when first setting up - leave the default settings. Then you can add extra days and details a day or two at a time. until you get to the level you want (up to 14 days)...once you get the full amount of days to load, it will keep the epg updated as it will just need to grab a new day's data every day.I got that fixed, was able to actually set it for more days than default. What seemed to be causing it was the extra details. Even after it scrapped the info initially it would still cause issues if I set it to scrapped the extra details. Not big deal though, so not that worried about it.
Quote
Not sure why you're seeing this unless there is an issue with the Kodi repo it is pulling mechanize from.Yeah, I'm not sure what the problem is, but I had the same problem on all 3 systems I set it up on. A Chromebox, RPi and an older Amlogic box that I installed LE on.
Quote
Have you setup the tvheadend channels to point to the proper zap2xml epg channel? They usually don't connect automatically, so you have to set the it up manually. It's on the CONFIGURATION>CHANNEL/EPG>CHANNELS tab. You select the epg source column for each channel and pick the correct zap2xml data for the channel you're setting up.Sorry about the delay in responding - I've been travelling and haven't checked in. Let me know if you're still having issues.
Yeah, that was actually my fault. After I set things back up, and because tvheadend will not add the muxes automatically, I have to manually add each mux. I think this maybe because I'm running a beta FW on my HDHomeRun. Anyway, what happened is that I didn't go back in and add the EPG source for each channel (I did this before on, but forgot to do it again after I started fresh). Rookie mistake.
Not a problem about the delay, life is more important. Usually I can figure these things out myself, but I was so close to having it working that I was just getting frustrated with it. I think that I was too close to it because once I stepped away from it for a while I was able to come back and figure out what I had done wrong.
But I appreciate all your help and I appreciate the good work you've done providing this add-on.
-
Ok, so after several hours of frustration and getting nowhere, I decided to do a complete wipe of my Chromebox and start from scratch.
I installed LE 7.0.2, then installed TVheadend 4.2 and set it up. Then I installed the latest zap2xml that you provided, changed the settings to pull 6 days of data, then rebooted my CB.
Here's my settings.
Code
Display More<settings> <setting id="Pass" value="(removed)" /> <setting id="User" value="(removed)" /> <setting id="allc" value="false" /> <setting id="cfirst" value="false" /> <setting id="cicons" value="true" /> <setting id="days" value="6" /> <setting id="delay" value="0.000000" /> <setting id="picons" value="true" /> <setting id="source" value="" /> <setting id="xdesc" value="true" /> <setting id="xdetails" value="true" /> </settings>
After the reboot, zap2xml began pulling the data, but when it got to the point of writing the xmltv.xml the log gave the same error I posted above for the zap2xml.log.
Now when it runs all I get is this from the tvheadend log.
Code[align=start]2016-10-05 17:00:31.000 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: grab /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml[/align] [align=start]2016-10-05 17:00:31.001 spawn: Executing "/storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml"[/align] [align=start]2016-10-05 17:00:42.924 spawn: cat: can't open '/storage/.kodi/userdata/addon_data/script.module.zap2xml/xmltv.xml': No such file or directory[/align] [align=start]2016-10-05 17:00:42.924 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: no output detected[/align] [align=start]2016-10-05 17:00:42.924 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: grab returned no data[/align]
So either there's some setting I've missed or a dependency that required that I don't have, but for some reason it refuses to write the xmltv.xml file.
EDIT: I changed the zap2xml settings to back to defaults and now it will write the xmltv.xml
Code
Display MoreReading config file: /storage/.kodi/addons/script.module.zap2xml/.zap2xmlrc [1/12] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475668800000.html.gz Notice: "Six hour grid" not selected in zap2it preferences, adjusting to 3 hour grid [2/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475679600000.html.gz [3/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475690400000.html.gz [4/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475701200000.html.gz [5/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475712000000.html.gz [6/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475722800000.html.gz [7/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475733600000.html.gz [8/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475744400000.html.gz [9/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475755200000.html.gz [10/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475766000000.html.gz [11/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475776800000.html.gz [12/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475787600000.html.gz [13/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475798400000.html.gz [14/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475809200000.html.gz [15/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475820000000.html.gz [16/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475830800000.html.gz [17/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475841600000.html.gz [18/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475852400000.html.gz [19/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475863200000.html.gz [20/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475874000000.html.gz [21/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475884800000.html.gz [22/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475895600000.html.gz [23/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475906400000.html.gz [24/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475917200000.html.gz Downloaded 0 bytes in 0 http requests. Writing XML file: /storage/.kodi/userdata/addon_data/script.module.zap2xml/xmltv.xml Completed in 4s (Parse: 3s) 57 stations, 2442 programs, 5810 scheduled.
So I'm not sure what is causing the no write with the settings, but it appears that some setting is causing it to not be able to write the xmltv.xml.
Also, on another note, I know you have this in the addon.xml for zap2xml <import addon="script.module.mechanize" version="0.2.6"/> , but when trying to install zap2xml it will still give a failure message due to "script.module.mechanize" dependency not being meet. I had to first install Aeon Nox skin before it would actually install mechanize.
[hr]
Now with the default zap2xml settings it's writing the xmltv.xml file, but now tvheadend is not able to pull the data. All I keep getting is :Code[align=start]2016-10-05 17:58:53.463 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: grab /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml[/align] [align=start]2016-10-05 17:58:53.465 spawn: Executing "/storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml"[/align] [align=start]2016-10-05 17:58:58.533 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: grab took 5 seconds[/align] [align=start]2016-10-05 17:58:58.550 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: parse took 0 seconds[/align] [align=start]2016-10-05 17:58:58.550 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: channels tot= 57 new= 0 mod= 0[/align] [align=start]2016-10-05 17:58:58.550 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: brands tot= 0 new= 0 mod= 0[/align] [align=start]2016-10-05 17:58:58.550 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: seasons tot= 0 new= 0 mod= 0[/align] [align=start]2016-10-05 17:58:58.550 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: episodes tot= 0 new= 0 mod= 0[/align] [align=start]2016-10-05 17:58:58.550 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: broadcasts tot= 0 new= 0 mod= 0[/align]
-
Not a problem, I'll update again and see if the problem persists.
It may be a little while, it's pulling 6 days of data and takes a while to do that. As soon as it finishes it's initial pull I'll update and see if it will update the EPG data without the error.
-
if "credits" in programs[p]:
fh.write("\t\t<credits>\n")
global sortThing1, sortThing2
sortThing1= str(p)
sortThing2 = "credits"Take out the red line - that shouldn't be there. Or just download the new zip and update the addon.
The other reason to update is I fixed the space after ampersand issue.
Ok, so I updated from git, but the "global" line is still in the script.
Codeif "credits" in programs[p]: fh.write("\t\t<credits>\n") global sortThing1, sortThing2 sortThing1= str(p) sortThing2 = "credits" for g in sorted(programs[p]["credits"], cmp=sortThings): fh.write("\t\t\t<actor>" + enc(g) + "</actor>\n") fh.write("\t\t</credits>\n") date = None
I also looked at what it is on git and it's there also.
I did an uninstall, then reinstalled it and now it's appears to be running as it should, but it did this when I first installed it too. I'll have to wait until it's finished and see if it will update the information and report back.
-
Got it - I think I found the error. If you can open the zap2xml.py file you can check the following:Open the zap2xml.py file (which is in the /.kodi/addons/script.module.zap2xml folder)...
At line 1401 (or could be 1400 on your version) change the following:
sortThing1 = p
To the following:
sortThing1= str(p)
That should take care of it.
The file is correct on my github: GitHub - edit4ever/script.module.zap2xml
You can try downloading the zip and updating to see if that fixes it. If not - let me know. I'm running this version without any issues.
Thanks, but that's already what that line has set.
-
Which version are you running?
TVHeadend 4.2, LibreELEC 7.0.2, zap2xml 0.4
-
So, I'm having an issue with zap2xml not updating the EPG data. On the first run it it will pull the data, but when it updates there seems to be some issue that I can't figure out.
Here's the log.
Code
Display More/storage/.kodi/addons/script.module.zap2xml/zap2xml.py:1400: SyntaxWarning: name 'sortThing1' is assigned to before global declaration global sortThing1, sortThing2 /storage/.kodi/addons/script.module.zap2xml/zap2xml.py:1400: SyntaxWarning: name 'sortThing2' is assigned to before global declaration global sortThing1, sortThing2 Reading config file: /storage/.kodi/addons/script.module.zap2xml/.zap2xmlrc [STNNUM] Parsing: 30512 [STNNUM] Parsing: 49024 [STNNUM] Parsing: 32712 [STNNUM] Parsing: 32714 [STNNUM] Parsing: 30620 [STNNUM] Parsing: 49298 [STNNUM] Parsing: 35309 [STNNUM] Parsing: 47386 [STNNUM] Parsing: 47794 [STNNUM] Parsing: 42584 [STNNUM] Parsing: 52429 [STNNUM] Parsing: 35824 [STNNUM] Parsing: 35826 [STNNUM] Parsing: 31356 [STNNUM] Parsing: 77051 [STNNUM] Parsing: 35907 [STNNUM] Parsing: 31654 [STNNUM] Parsing: 47681 [STNNUM] Parsing: 35714 [STNNUM] Parsing: 35716 [STNNUM] Parsing: 62031 [STNNUM] Parsing: 15634 [STNNUM] Parsing: 44516 [STNNUM] Parsing: 55175 [STNNUM] Parsing: 16203 [STNNUM] Parsing: 35718 [STNNUM] Parsing: 47462 [STNNUM] Parsing: 70768 [1/24] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475575200000.html.gz Notice: "Six hour grid" not selected in zap2it preferences, adjusting to 3 hour grid [2/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475586000000.html.gz [3/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475596800000.html.gz [4/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475607600000.html.gz [5/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475618400000.html.gz [6/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475629200000.html.gz [7/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475640000000.html.gz [8/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475650800000.html.gz [9/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475661600000.html.gz [10/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475672400000.html.gz [11/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475683200000.html.gz [12/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475694000000.html.gz [13/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475704800000.html.gz [14/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475715600000.html.gz [15/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475726400000.html.gz [16/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475737200000.html.gz [17/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475748000000.html.gz [18/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475758800000.html.gz [19/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475769600000.html.gz [20/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475780400000.html.gz [21/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475791200000.html.gz [22/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475802000000.html.gz [23/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475812800000.html.gz [24/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475823600000.html.gz [25/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475834400000.html.gz [26/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475845200000.html.gz [27/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475856000000.html.gz [28/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475866800000.html.gz [29/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475877600000.html.gz [30/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475888400000.html.gz [31/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475899200000.html.gz [32/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475910000000.html.gz [33/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475920800000.html.gz [34/48] Parsing: /storage/.kodi/addons/script.module.zap2xml/cache/1475931600000.html.gz Exception error<type 'exceptions.TypeError'> Traceback (most recent call last): File "/storage/.kodi/addons/script.module.zap2xml/zap2xml.py", line 2006, in <module> main() File "/storage/.kodi/addons/script.module.zap2xml/zap2xml.py", line 1916, in main parseGrid(fn) #data read in and unicode it File "/storage/.kodi/addons/script.module.zap2xml/zap2xml.py", line 1082, in parseGrid p.feed(b) File "/home/chewitt/LibreELEC.70-official/build.LibreELEC-Generic.x86_64-7.0.2/Python-2.7.11/.install_pkg/usr/lib/python2.7/HTMLParser.py", line 117, in feed File "/home/chewitt/LibreELEC.70-official/build.LibreELEC-Generic.x86_64-7.0.2/Python-2.7.11/.install_pkg/usr/lib/python2.7/HTMLParser.py", line 161, in goahead File "/home/chewitt/LibreELEC.70-official/build.LibreELEC-Generic.x86_64-7.0.2/Python-2.7.11/.install_pkg/usr/lib/python2.7/HTMLParser.py", line 327, in parse_starttag File "/storage/.kodi/addons/script.module.zap2xml/zap2xml.py", line 704, in handle_starttag globals()['on_%s' % tag](self, tag, attrs) File "/storage/.kodi/addons/script.module.zap2xml/zap2xml.py", line 323, in on_td if re.search("^MV",cp): File "/home/chewitt/LibreELEC.70-official/build.LibreELEC-Generic.x86_64-7.0.2/Python-2.7.11/.install_pkg/usr/lib/python2.7/re.py", line 146, in search TypeError: expected string or buffer
And the tvheadend log.
Code[align=start]2016-10-04 11:45:57.000 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: grab /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml[/align] [align=start]2016-10-04 11:45:57.001 spawn: Executing "/storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml"[/align] [align=start]2016-10-04 11:46:12.259 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: grab took 15 seconds[/align] [align=start]2016-10-04 11:46:12.611 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: parse took 0 seconds[/align] [align=start]2016-10-04 11:46:12.611 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: channels tot= 57 new= 0 mod= 0[/align] [align=start]2016-10-04 11:46:12.611 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: brands tot= 0 new= 0 mod= 0[/align] [align=start]2016-10-04 11:46:12.611 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: seasons tot= 2005 new= 2005 mod= 2005[/align] [align=start]2016-10-04 11:46:12.611 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: episodes tot= 2098 new= 1695 mod= 1695[/align] [align=start]2016-10-04 11:46:12.611 /storage/.kodi/addons/script.module.zap2xml/bin/tv_grab_zap2xml: broadcasts tot= 2098 new= 0 mod= 0[/align]