File "/home/osmc/.kodi/addons/script.module.zap2xml/zap2xml.py", line 352, in on_td
data = getURL(urlRoot + "gridDetailService?rtype=pgmimg&pgmId=" + cp)
TypeError: cannot concatenate 'str' and 'int' objects
There must be some program numbers that have a character that is messing with the putting together of the string.
My guess is if we force that whoel section to use str(cp) it will fix it... try this starting at 348:
if "-I" in options:
fn = os.path.join(cacheDir,"I" + str(cp) + ".js.gz")
if not os.path.isfile(fn):
data = getURL(urlRoot + "gridDetailService?rtype=pgmimg&pgmId=" + str(cp))
if data: #sometimes we fail to get the url try to keep going
wbf(fn, data)
log.pout(" Parsing: " + str(cp),'info')
parseJSONI(fn)
[hr]
Strangely, when I look inside the xmltv.xml file, all programmes starts 10 days later. The 1st programme is due on the 26th of January. If I check on zap2it website, all the informations are there for today (the 16th of January).
That's really strange. The data on the zap2it site looks correct. The downloads happen as a complete station group in 6 hour blocks...so it shouldn't happen.
You could try deleting the xmltv.xml file and in the .kodi/addons/script.module.zap2xml/cache folder try deleting all of the files that end with .html.gz - these are the bulk guide data downloads. There shouldn't be that many (depending on how many days you set to download - each file is a 6 hour block) All the other files are the pictures and extra details if you've set those to download.
If you're trying to navigate these folders from a windows computer (instead of from ssh) you will need to add the .kodi folder to your samba.conf file. Open that file (or if you haven't made one yet - rename the samba.conf.sample file to samba.conf and open it) and add the following ta the bottom:
[kodi]
path = /storage/.kodi
available = yes
browsable = yes
public = yes
writable = yes
root preexec = mkdir -p /storage/.kodi
This will allow you to browse the .kodi folder from windows and easily get to the addons folder.
If you delete the cache files / reboot and let zap2xml run again I'm hoping it clears up. Otherwise - I'm not sure why that one channel would have strange data.