Thank you for that information, I just sent a note to zap2it, hope they will fix this. Because of this is not only cinemax, i need some more SD channels those doesn't have HD.
tvheadend, ATSC and epg...
-
edit4ever -
June 4, 2016 at 5:36 PM -
Thread is Unresolved
-
-
Hi edit4ever
Could you please check my setting for Cron addon if it's right? I am not a coder, just following your instructions and the WIKI:
<?xml version="1.0" ?>
<cron>
<job addon="service.cronxbmc" command="RunScript(Special://home/addons/script.module.zap2epg/zap2epg.py[,args]*])" expression="0 0 * * *" name="zap2epg" show_notification="true"/>
</cron>
Thank you very much
-
-
once a day is OK for me at 12:00, so my set of expression="0 0 * * *" is fine?
-
yes - if you mean midnight. In your command line, you don't need the [,args]*] part is that is just a reference to the optional arguments - which in this case, zap2epg doesn't have any.
-
Cron notice to run command="RunScript(Special://home/addons/script.module.zap2epg/zap2epg.py) but nothing happen.
I replace it by command="ActivateWindow(10001,"plugin://script.module.zap2epg/run",return)" it runs normally.
Do you have any idea about this?
I want to upload xmltv.xml to FTP after zap2epg, can you help?
-
sorry - that will be beyond my LE knowledge. Why ftp vs local network? If you're trying to access xmltv.xml from a different system (not locally) just install zap2epg on that system.
And by nothing happens - do you mean you don't see anything on the screen or the xmltv.xml file does not get generated?
-
Cron just notice: zap2epg is executing, but nothing run, xmltv.xml is not generated.
but with command="ActivateWindow(10001,"plugin://script.module.zap2epg/run",return)", the script run with the spin about 5 minutes, at this time I can't do any task on the box.
-
You should not need to run the addon - just the zap2epg.py script.
I am not familiar with the cron addon you're using - so you may need to create a new post thread with a question about running a script from cron. Sorry - my original intention for the addon was to be used with tvheadend.
-
I use this cron addon: GitHub - robweber/cronxbmc: A simple Cron-like service for Kodi
I use LibreELEC 8.2 on S905 box, I saw in LibreElec settings/Service an item to enable Cron, I guest LibreElec has a built-in Cron but I don't know to use it (don't know where it is).
-
Miker You have a permission issue when trying to run the zap2epg script manually from the addon folder. Since LE doesn't give you write permission in that folder - you can't generate the log and xmltv.xml files from there. This is handled by the addon when running from within kodi and handled by the grabber for tvh.
In your case - copy the zap2epg.py file to the script.module.zap2epg userdata folder and run from there. That way you can use the kodi interface to configure the zap2epg addon - and then manually run it from userdata folder with the command below.
In case you don't know how to access the .kodi/addon folder - just download the zip from github, extract the zap2epg.py file and then you can copy to the userdata/addon_data/script.module.zap2epg folder over samba.
-
0.7.2 update to fix issues with digital cable and some satellite lineups:
Releases · edit4ever/script.module.zap2epg · GitHub
Thanks!
-
Any idea why whenever I try and choose channel lineup in the addon I get an error? I'm running your latest version on Kodi 17.6 with TVH disabled and am just pulling the DirecTV lineup for my zip code. It pulls the data just fine, but having it pull for all 900 or so channels is way more than I need so it would be nice to be able to choose which channels.
Code
Display More20:24:19.456 T:5948 NOTICE: [xbmcswift2] Request for "/channels" matches rule for function "channels" 20:24:19.458 T:5948 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.NameError'> Error Contents: global name 'tvh_url' is not defined Traceback (most recent call last): File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.zap2epg\default.py", line 293, in <module> plugin.run() File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.xbmcswift2\lib\xbmcswift2\plugin.py", line 332, in run items = self._dispatch(self.request.path) File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.xbmcswift2\lib\xbmcswift2\plugin.py", line 306, in _dispatch listitems = view_func(**items) File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.zap2epg\default.py", line 133, in channels create_cList() File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.zap2epg\default.py", line 91, in create_cList channels_url = 'http://' + tvh_url + ':' + tvh_port + '/api/channel/grid?all=1&limit=999999999&sort=name' NameError: global name 'tvh_url' is not defined -->End of Python script error report<-- 20:24:19.505 T:2224 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://script.module.zap2epg/channels 20:24:19.505 T:2224 ERROR: CGUIMediaWindow::GetDirectory(plugin://script.module.zap2epg/channels) failed
-
If you installed 0.7.2 - please re-select your location first. There was a change in digital cable and satellite lineups on the website that messed with the headend info. Then you should be able to reconfigure your channels in the addon.
Let me know if that solves the issue.
-
Still no luck. I even tried uninstalling the addon, deleting the userdata folder, and reinstalling 0.7.2.
Code
Display More22:40:04.500 T:4536 NOTICE: [xbmcswift2] Request for "/" matches rule for function "index" 22:40:09.775 T:10924 NOTICE: Previous line repeats 2 times. 22:40:09.775 T:10924 NOTICE: [xbmcswift2] Request for "/channels" matches rule for function "channels" 22:40:09.776 T:10924 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.NameError'> Error Contents: global name 'tvh_url' is not defined Traceback (most recent call last): File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.zap2epg\default.py", line 293, in <module> plugin.run() File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.xbmcswift2\lib\xbmcswift2\plugin.py", line 332, in run items = self._dispatch(self.request.path) File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.xbmcswift2\lib\xbmcswift2\plugin.py", line 306, in _dispatch listitems = view_func(**items) File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.zap2epg\default.py", line 133, in channels create_cList() File "C:\Users\Anthony\AppData\Roaming\Kodi\addons\script.module.zap2epg\default.py", line 91, in create_cList channels_url = 'http://' + tvh_url + ':' + tvh_port + '/api/channel/grid?all=1&limit=999999999&sort=name' NameError: global name 'tvh_url' is not defined -->End of Python script error report<-- 22:40:09.808 T:2192 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://script.module.zap2epg/channels 22:40:09.808 T:2192 ERROR: CGUIMediaWindow::GetDirectory(plugin://script.module.zap2epg/channels) failed 22:40:10.305 T:3736 NOTICE: [xbmcswift2] Request for "/" matches rule for function "index"
-
Yousty Thank you for the log. Looks like I forgot to put in the proper code on channel setup for users not using tvheadend.
I should be able to provide a fix today.
-
and here's the fix.
Releases · edit4ever/script.module.zap2epg · GitHub
0.7.3 fixes the error while configuring a channels list in the addon when not running Tvheadend.
Thanks Yousty for finding this one!
-
Damn you're fast! Just tried it out and it works! Sent another donation your way for all the great work and support you've been doing.
-