Kodi Community Forum

Full Version: Zap2xml for ATSC in OpenELEC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Great! Looking forward to that. 

Thanks for the detailed explanation. I'm sure it will help others.

M.
New update!  This version adds a function/option to get the channels from tvheadend and append the subchannel number and service name to the xmltv file.  For new setups, this should create an automated matching/setup of the epg source in tvheadend for the OTA (broadcast/antenna) lineups.  This function/option is ignored for cable lineups.

Here you go and thank you for testing!
https://github.com/edit4ever/script.modu...g/releases

--- update note: I updated the github release to 0.5.1 - this added a cleanup in the xtra details downloads that should speed up errors due to failed downloads.  If you happened to have grabbed the 0.5.0 release before I updated to 0.5.1, you can just redownload and update.  Please note that the release will still say 0.5.0 in kodi.
Greetings. I am getting the following error:
 2017-11-21 15:56:23.582 xmltv: /storage/.kodi/addons/script.module.zap2epg/bin/tv_grab_zap2epg: grab /storage/.kodi/addons/script.module.zap2epg/bin/tv_grab_zap2epg2017-11-21 15:56:23.585 spawn: Executing "/storage/.kodi/addons/script.module.zap2epg/bin/tv_grab_zap2epg"2017-11-21 15:58:30.028 xmltv: /storage/.kodi/addons/script.module.zap2epg/bin/tv_grab_zap2epg: htsmsg_xml_deserialize error Unknown label referense: "& Icons2017-11-21 15:58:30.028 xmltv: /storage/.kodi/addons/script.module.zap2epg/bin/tv_grab_zap2epg: grab returned no data

Any ideas?
That is definitely strange...any chance you can send me the zap2epg.log file?  It's in the userdata/addon_data/script.module.zap2epg folder.

I'm guessing that might be  a reference to the Hereos and Icons channel?  Are you using a cable lineup?
If so - Looks like I need to check the escaping of & for channel names.  I know I have it set for plot description and show titles.

---- try this version and see if it works.
https://www.dropbox.com/s/2kq3b27c9n45l7...2.zip?dl=0
Thanks for replying. Here is the log before I updated: 

2017/11/21 19:05:00 Running zap2epg for zipcode: 92504 and lineup: Local Over the Air Broadcast
2017/11/21 19:05:00 Parsing 1511319600.json.gz
2017/11/21 19:05:00 Parsing 1511330400.json.gz
2017/11/21 19:05:00 Parsing 1511341200.json.gz
2017/11/21 19:05:00 Parsing 1511352000.json.gz
2017/11/21 19:05:00 Parsing 1511362800.json.gz
2017/11/21 19:05:00 Parsing 1511373600.json.gz
2017/11/21 19:05:01 Parsing 1511384400.json.gz
2017/11/21 19:05:01 Parsing 1511395200.json.gz
2017/11/21 19:05:01 Creating xmltv.xml file...
2017/11/21 19:05:01 Writing Stations to xmltv.xml file...
2017/11/21 19:05:01 Writing Episodes to xmltv.xml file...
2017/11/21 19:05:01 Checking for old cache files...
2017/11/21 19:05:01 zap2epg completed in 0.59 seconds. 
2017/11/21 19:05:01 54 Stations and 1919 Episodes written to xmltv.xml file.

Looks normal. But I updated to the file you posted, and now it works. So, great job! Thank you!
Thanks for the update! I'll push the fix to GitHub and update the release tomorrow.

Here's the updated 0.5.2 release with the fix for the ampersand in channel names:

https://github.com/edit4ever/script.modu...g/releases

Thanks!
Just wanted to let you know I'm still out here Smile

zap2epg is running great. Updates as expected and taking ~13 mins. to download and update xmltv.xml file.

I will help test where/when I can but since it's working so well, I'm going to be careful about it. Obviously I can confirm that it continues to work with updates you've made. However, since I have everything set up and working so well, I won't be able to help test installation functionality (unless my system goes thru a major crash Sad Sorry....

Don't know if it makes sense but might it be better to combine tvh2kodi with zap2epg? Both addons affect TVHeadEnd? Just a thought.....and to answer a previous question...haven't thought of any other functions/capabilities to add to zap2epg, but if something comes to mind, I'll pass it along.

Again, appreciate all your effort.

Cheers.....

(2017-11-22, 06:33)edit4ever Wrote: [ -> ]Thanks for the update! I'll push the fix to GitHub and update the release tomorrow.

Here's the updated 0.5.2 release with the fix for the ampersand in channel names:

https://github.com/edit4ever/script.modu...g/releases

Thanks!
@stephr1 - thank you for the update.

Just for a reference, can you let me know how many days and how many channels your lineup is downloading for those 13 minute updates?  The length of time has to do with getting the extra details information as it has to download the series/season info for the episode that is airing.  Don't know why the new data source is setup that way - but that's the way it is.

Since it just runs in the background, it really doesn't matter how long it takes - but I'm just curious to know.  Thanks!
No problem!! Glad to have been, and continue to be, part of the process (as much as I can be) Smile

I have the full 14 days set with xtra details enabled and for download. Last night's log file had the following stats at the end of the file:

2017/11/25 03:13:14 zap2epg completed in 793.95 seconds.
2017/11/25 03:13:14 51 Stations and 24370 Episodes written to xmltv.xml file.

NOTE: The 51 stations is an interesting number. If I look at what I have enabled in the THV web interface under Configuration/Channel/EPG/Channels, I count 29. Under Configuration/Channel/EPG/EPG Grabber Channels, the count is 117. Granted, the 1st number is the channels I specifically have enabled and 117 includes channels I don't care about (and should prob'ly clean that up). "A man with no watches never knows the time. A man with 2 watches is never sure" Smile

Hope that helps.

Cheers....



(2017-11-25, 16:51)edit4ever Wrote: [ -> ]@stephr1 - thank you for the update.

Just for a reference, can you let me know how many days and how many channels your lineup is downloading for those 13 minute updates?  The length of time has to do with getting the extra details information as it has to download the series/season info for the episode that is airing.  Don't know why the new data source is setup that way - but that's the way it is.

Since it just runs in the background, it really doesn't matter how long it takes - but I'm just curious to know.  Thanks!
Thanks for the info!  The 51 channels is what is found by the grabber from the source for your lineup.  If you don't have a channels list setup fro zap2epg, it just downloads all the channels.  In your case, though a bit of a PITA, it would be worth running through the zap2epg setup of selecting channels as your download time will decrease dramatically! I'm going to try to wok on code to pull the channel list from tvh and update after the first run so future downloads will only get the channels you have setup in tvh - but I haven't gotten to it yet.  Since you have 29 stations mapped in tvh - I would add those to the channel list in zap2epg.

The 117 is what tvh has stored based on what may have been loaded at different times.  Not really a big deal what is in there unless you have issues with wrong guide data - as that could be an error with an outdated grabber channel mapped to the wrong channel.
Oooops! I forgot to push the finished tvheadend code to support usernames and passwords. 

Here's the updated 0.5.3 release with support for tvh username-password!  (this won't impact systems without tvh usernames)

https://github.com/edit4ever/script.modu...g/releases

Thanks!
Went back and checked and realized I did use zap2epg setup to set my channel selection. Must be residual garbage from when I set things up using tvh. Prob'ly be a good thing to go back into tvh and clean stuff up there.

One other note....wrt to the no. of channels and days....the results I gave (at least, length of time) included 4 downloads that didn't happen (i.e. "Could not download...") which prob'ly matters nothing given the size of the file.

Cheers....

(2017-11-26, 17:34)edit4ever Wrote: [ -> ]Thanks for the info!  The 51 channels is what is found by the grabber from the source for your lineup.  If you don't have a channels list setup fro zap2epg, it just downloads all the channels.  In your case, though a bit of a PITA, it would be worth running through the zap2epg setup of selecting channels as your download time will decrease dramatically! I'm going to try to wok on code to pull the channel list from tvh and update after the first run so future downloads will only get the channels you have setup in tvh - but I haven't gotten to it yet.  Since you have 29 stations mapped in tvh - I would add those to the channel list in zap2epg.

The 117 is what tvh has stored based on what may have been loaded at different times.  Not really a big deal what is in there unless you have issues with wrong guide data - as that could be an error with an outdated grabber channel mapped to the wrong channel.
Small fix and release (0.5.4) with a fix for the cast information for movies.  Somehow this dropped off in one of the recent updates...so this puts the cast listing back in (if you add it in extra details).

https://github.com/edit4ever/script.modu...g/releases Thanks!​​

@stephr1 - don't worry about the 4 files it couldn't download.  Sometimes the data isn't there.  It will try 3 times then fail...and it will retry the next time the system updates, so if it is fixed on the server side, it will get updated. :-)
Any idea when you might get to fixing the issue you discovered in post 411?
(2017-11-29, 06:23)hagertyoh Wrote: [ -> ]Any idea when you might get to fixing the issue you discovered in post 411?
 I think you mean adding Kodi 18 Leia compatibility?  If so, the issue is with the way the grabber pulls the info from the settings.xml file - as the way settings are stored has changed in Kodi 18.  My zap2epg addon should be compatible with both and since that will be the one that works in the future - if you could test it I would appreciate it!

If the issue is something different, please let me know.
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