Kodi Community Forum

Full Version: WebGrab+Plus Configurator
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
You need to get the command line version working first before debugging the addon version.
You got error 127 from that so that needs fixing first.
You haven't got any site ini files in POS/exe so it looks like you haven't added any channels yet.

Post the contents of WebGrab++.config.xml and WebGrab++.log.txt.
If i run the command file or the CLI WG works fine.

The ini files are in this directory

drwxr-xr-x@ 90 mike staff 3060 26 Aug 12:43 siteini.pack

When I run the command or CLI I get a guide.xml. When I use the add on no xml is created nor log file.

Config XML in POS/exe folder: http://pastebin.com/YXuqKHxg

Log file: http://pastebin.com/5MWqx2vR
Here is the xml that was created

<?xml version="1.0" encoding="UTF-8"?>
<tv generator-info-name="WebGrab+Plus/w MDB &amp; REX Postprocess -- version V1.57 -- Jan van Straaten" generator-info-url="http://www.webgrabplus.com">
<channel id="Channel01">
<display-name lang="en">Channel 01</display-name>
<url>http://www.dummy</url>
</channel>
<programme start="20160826000000 +0100" stop="20160826235900 +0100" channel="Channel01">
<title lang="en">dummy program - Full Day Show</title>
<desc lang="en">Created by WebGrab+Plus, your favorite TVguide Grabber(n)</desc>
</programme>
</tv>
Have you renamed wg.command to /Users/mike/Library/Application Support/Kodi/pos.command ?

The only other thing I can see is that the "call" function in run.py can have a "shell=True" parameter too if necessary. You could try that.
https://docs.python.org/2/library/subpro...ocess.call
I will try that.

Where do I put that in the .py?
addons\script.webgrab\run.py line 16
Code:
status = call([exe,path],shell=True)
or False Wink
Now it runs, but no xml is created.

I am going to rest on this.

Thanks for the help.

Edit: when I say 'run' it does not output an error, but I don't see that nice fancy popup screen in your screenshot either.
When you add some channels the ini files you need need to be in the same folder as WebGrab++.config.xml.
"Output Config Files" does that for you.
This is he config generated by the add-on

<settings>
<timespan>1</timespan>
<update></update>
<filename>/Users/mike/Library/Application Support/Kodi/userdata/addon_data/script.webgrab/webgrab/workdamnit.xml</filename>
<channel update="i" site="tv.sky.com" site_id="1306" xmltv_id="Sky Sports F1">Sky Sports F1</channel>
<channel update="i" site="tv.sky.com" site_id="4081" xmltv_id="Sky Sports 2 HD">Sky Sports 2 HD</channel>
<channel update="i" site="tv.sky.com" site_id="1302" xmltv_id="Sky Sports 2">Sky Sports 2</channel>
<channel update="i" site="tv.sky.com" site_id="1333" xmltv_id="Sky Sports 3">Sky Sports 3</channel>
<channel update="i" site="tv.sky.com" site_id="4002" xmltv_id="Sky Sports 1 HD">Sky Sports 1 HD</channel>
<channel update="i" site="tv.sky.com" site_id="1301" xmltv_id="Sky Sports 1">Sky Sports 1</channel>
<channel update="i" site="tvhebdo.com" site_id="ae/A%26amp%3BE" xmltv_id="A&amp;E">A&amp;E</channel>
<channel update="i" site="tv.sky.com" site_id="4022" xmltv_id="Sky Sports 3 HD">Sky Sports 3 HD</channel>
</settings>

Still no xml. Sad
Try tvguide.co.uk as the site.
I don't think the sky one works without some extra cookie setup.
It works from the CLI

http://imgur.com/a/0hIYo

Although the timezones are off… but that is the least of my problems!!!
Here is the part of the other script I mentioned that launches an exe from a wine bottle if this helps at all:

http://pastebin.com/qXAN3VYd
hi guys

is it possible to run this on a nvidia shield?

thanks for your work
(2016-08-26, 23:43)htpcmac Wrote: [ -> ]It works from the CLI

http://imgur.com/a/0hIYo

Although the timezones are off… but that is the least of my problems!!!

The timezones should be easy. In the Countries\providers section there is a Timezone Edit context menu command. It modifies the timezone= parameter in the ini file when you run the "Output Config Files" command.

If you can run it from the command line you can at least set up a scheduled task in osx to run it daily.

You'll have to do some experimenting on your own with the "call" function in the run.py file if you want to run it from the addon.

If you find the magic incantation that works in osx I'll add it into the addon for everyone else.
(2016-08-28, 08:45)dannyrobbo Wrote: [ -> ]hi guys

is it possible to run this on a nvidia shield?

thanks for your work

If someone has made a mono port for the nvidia shield you should be able to run the exe. The addon can be used anywhere to generate the WebGrab+Plus config files. You can then run the exe on any device on your network that can run .net exe files.
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