Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
  • 1
  • 9
  • 10
  • 11(current)
  • 12
  • 13
  • 24
Beta WebGrab+Plus Configurator
(2016-08-27, 00:24)htpcmac Wrote: 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

If that script works then try changing the call command to a Popen command in the addons run.py:
Code:
import subprocess
...
        try:
            self.proc = subprocess.Popen(comd,shell=False)
Reply
Like this?

Code:
from subprocess import call
import xbmcaddon,xbmcgui,subprocess
dialog = xbmcgui.Dialog()


ADDON = xbmcaddon.Addon(id='script.webgrab')
try: LIBRE = xbmcaddon.Addon(id='script.webgrab')
except: LIBRE = ''
exe = ADDON.getSetting('exe')
path = ADDON.getSetting('config_output_folder')
dialog.notification("Webgrab+Plus Configurator","Starting")
if LIBRE:
    status = call([exe], shell=True)
else:
    status = self.proc = subprocess.Popen(comd,shell=False)
if status != 0:
    message = "Error %s" % status
else:
    message ="Finished"
dialog.notification("Webgrab+Plus Configurator",message)
Reply
(2016-08-28, 17:42)htpcmac Wrote: Like this?

This works on windows with Popen instead of call.
See if it works for you on osx.

Code:
from subprocess import call, Popen
import xbmcaddon,xbmcgui

dialog = xbmcgui.Dialog()


ADDON = xbmcaddon.Addon(id='script.webgrab')
try: LIBRE = xbmcaddon.Addon(id='service.webgrabplus')
except: LIBRE = ''
exe = ADDON.getSetting('exe')
path = ADDON.getSetting('config_output_folder')
dialog.notification("Webgrab+Plus Configurator","Starting")
if LIBRE:
    status = call([exe])
else:
    status = Popen("%s %s" % (exe,path), shell=False)
if status != 0:
    message = "Error %s" % status
else:
    message ="Finished"
dialog.notification("Webgrab+Plus Configurator",message)
Reply
Here is a full log output. I created a marker before hitting run then stopped after it ran.

This is a normally clean Kodi install, but twitter got installed with another add-on.

http://pastebin.com/Ads1ChXN
Reply
(2016-08-28, 18:31)htpcmac Wrote: Here is a full log output. I created a marker before hitting run then stopped after it ran.

This is a normally clean Kodi install, but twitter got installed with another add-on.

http://pastebin.com/Ads1ChXN

Did you cut and paste the whole code block? There seems to be a missing ) from the Popen line.
Replace the whole run.py file with this and paste the log so I can see what your inputs and outputs are.
Code:
from subprocess import call, Popen, check_output
import subprocess
import xbmcaddon,xbmcgui

dialog = xbmcgui.Dialog()


ADDON = xbmcaddon.Addon(id='script.webgrab')
try: LIBRE = xbmcaddon.Addon(id='service.webgrabplus')
except: LIBRE = ''
exe = ADDON.getSetting('exe')
path = ADDON.getSetting('config_output_folder')
dialog.notification("Webgrab+Plus Configurator","Starting")
if LIBRE:
    status = call([exe])
else:
    xbmc.log(repr(("XXXXXX",exe,path)))
    try:
        output = check_output([exe,path], shell=False)
        xbmc.log(repr(("XXXXXX",output)))        
    except subprocess.CalledProcessError as e:
        xbmc.log(repr(("XXXXXX",e.returncode,e.output)))
Reply
http://pastebin.com/3ZCuZGMd

Edit: I hit re-install, applied your code and re ran the command

http://pastebin.com/4sXHDhJw
Reply
(2016-08-29, 00:57)htpcmac Wrote: http://pastebin.com/3ZCuZGMd

Edit: I hit re-install, applied your code and re ran the command

http://pastebin.com/4sXHDhJw

It looks like osx is using the old version of python: 2.6 instead of 2.7. It doesn't have the check_output command.
You need to paste the complete log when you post them so I can see everything about your system.
Post the content of the file you are calling in the Program Setting, ls -l of the Config Output Folder (before and after), the contents of the WebGrab++.log.txt file, the contents of the settings.xml file and the kodi.log file (complete).

Lets just go back to the original but with some more log info.
Code:
from subprocess import call
import xbmcaddon,xbmcgui

dialog = xbmcgui.Dialog()


ADDON = xbmcaddon.Addon(id='script.webgrab')
try: LIBRE = xbmcaddon.Addon(id='service.webgrabplus')
except: LIBRE = ''
exe = ADDON.getSetting('exe')
path = ADDON.getSetting('config_output_folder')
xbmc.log(repr(("XXXXXX",exe,path)))
dialog.notification("Webgrab+Plus Configurator","Starting")
if LIBRE:
    status = call([exe])
else:
    status = call([exe,path],shell=False)
    xbmc.log(repr(("XXXXXX",status)))
if status != 0:
    message = "Error %s" % status
else:
    message ="Finished"
dialog.notification("Webgrab+Plus Configurator",message)
Reply
Here is all the requested output files.

http://pastebin.com/nBqqgWmF
Reply
(2016-08-29, 09:27)htpcmac Wrote: Here is all the requested output files.

http://pastebin.com/8ycPCU0t

You can't have changed the run.py file because it still says this:
Code:
Error Contents: cannot import name check_output
Reply
(2016-08-29, 09:32)primaeval Wrote:
(2016-08-29, 09:27)htpcmac Wrote: Here is all the requested output files.

http://pastebin.com/8ycPCU0t

You can't have changed the run.py file because it still says this:
Code:
Error Contents: cannot import name check_output

I edited the post with the correct log file. The output was too long that I had to copy it all into that pastebin and pasted the wrong log file. Sorry.
Reply
Try it with shell=True instead of shell=False
Reply
http://pastebin.com/xse6ercr

The add on directory looks like it has changed as well

Code:
Mikes-MacBook-Retina:script.webgrab mike$ ls -l
total 264
-rw-r--r--  1 mike  staff    698 28 Aug 12:39 addon.xml
-rw-r--r--  1 mike  staff   1293 28 Aug 12:39 changelog.txt
-rw-r--r--  1 mike  staff  70080 28 Aug 12:39 fanart.jpg
-rw-r--r--  1 mike  staff  18286 28 Aug 12:39 icon.png
-rw-r--r--  1 mike  staff  23517 28 Aug 12:39 main.py
-rwxrwxrwx@ 1 mike  staff    222 28 Aug 20:38 mike.command
drwxr-xr-x  5 mike  staff    170 29 Aug 05:19 resources
-rw-r--r--@ 1 mike  staff    544 29 Aug 05:12 run.py
Reply
(2016-08-29, 11:24)htpcmac Wrote: http://pastebin.com/xse6ercr

The add on directory looks like it has changed as well

Code:
Mikes-MacBook-Retina:script.webgrab mike$ ls -l
total 264
-rw-r--r--  1 mike  staff    698 28 Aug 12:39 addon.xml
-rw-r--r--  1 mike  staff   1293 28 Aug 12:39 changelog.txt
-rw-r--r--  1 mike  staff  70080 28 Aug 12:39 fanart.jpg
-rw-r--r--  1 mike  staff  18286 28 Aug 12:39 icon.png
-rw-r--r--  1 mike  staff  23517 28 Aug 12:39 main.py
-rwxrwxrwx@ 1 mike  staff    222 28 Aug 20:38 mike.command
drwxr-xr-x  5 mike  staff    170 29 Aug 05:19 resources
-rw-r--r--@ 1 mike  staff    544 29 Aug 05:12 run.py

run.py worked. You need to check the path that mike.command uses to see where the config files should go and end up.
Code:
INFO: CPythonInvoker(23, special://home/addons/script.webgrab/run.py): script successfully run

You might need to add a cwd in your script to make sure you are either in the same directory as the wg exe or the same folder as the config files. Try both.
Reply
Hi!
I have a wetek core running librelec 7.02.
Also using iptv simple client and webgrab+ on the box.
My problem is concerned with the iptv list I am getting online sends a list of channels that are not matched with those I put in webgrab+. That results in almost every channel is not matched with the epg (it is simply missing).
Can I use this addon to create a list that matching my channels without out to much editing.. like with perfect player?
Thanks
Reply
(2016-09-10, 00:08)linuxmad Wrote: Hi!
I have a wetek core running librelec 7.02.
Also using iptv simple client and webgrab+ on the box.
My problem is concerned with the iptv list I am getting online sends a list of channels that are not matched with those I put in webgrab+. That results in almost every channel is not matched with the epg (it is simply missing).
Can I use this addon to create a list that matching my channels without out to much editing.. like with perfect player?
Thanks

I expect you can. This addon is about as simple as it gets for configuring Webgrab+Plus.
You need to carefully understand what files end up where though and use the Quick Add context menu to make things easy.
Reply
  • 1
  • 9
  • 10
  • 11(current)
  • 12
  • 13
  • 24

Logout Mark Read Team Forum Stats Members Help
WebGrab+Plus Configurator3