2012-03-19, 03:53
(2012-03-16, 22:53)bog_gob Wrote: Here are some additional channels not covered by the excellent repository xbmc-catchuptv-au.bog_gob,
First of all thank you for giving these scripts/plugins some loving. I know the missus has certainly missed the SBS plugin, and I'm sure she will appreciate the others that you have included. Unfortunately the SBS plugin still has one or two little gottcha's.
The first time that I try the plugin I get a warning that something is wrong and the script crashes. Seems to work fine the next time I try the plugin. Anyway here is the appropriate part of my debug log.
PHP Code:
09:07:16 T:5428 ERROR: J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2\default.py:34: DeprecationWarning: os.getcwd()
currently lies to you so please use addon.getAddonInfo('path') to find the script's root directory and
DO NOT make relative path accesses based on the results of 'os.getcwd.'
addon = xbmcaddon.Addon( id=os.path.basename(os.getcwd()))
09:07:16 T:5428 NOTICE: ::
09:07:16 T:5428 NOTICE: plugin://plugin.video.sbs2/extrafanart/?url=None&path=%28%27Clips%27%2C%29&name=Clips&mode=0
09:07:16 T:5428 NOTICE: {'url': None, 'path': ('Clips',), 'name': 'Clips', 'mode': 0}
09:07:16 T:5428 NOTICE: {}
09:07:16 T:5428 NOTICE: %%
09:07:16 T:5428 NOTICE: ::
09:07:16 T:5428 NOTICE: plugin://plugin.video.sbs2/extrafanart/?url=None&path=%28%27Events%27%2C%29&name=Events&mode=0
09:07:16 T:5428 NOTICE: {'url': None, 'path': ('Events',), 'name': 'Events', 'mode': 0}
09:07:16 T:5428 NOTICE: {}
09:07:16 T:5428 NOTICE: %%
09:07:16 T:5428 NOTICE: ::
09:07:16 T:5428 NOTICE: plugin://plugin.video.sbs2/extrafanart/?url=None&path=%28%27Programs%27%2C%29&name=Programs&mode=0
09:07:16 T:5428 NOTICE: {'url': None, 'path': ('Programs',), 'name': 'Programs', 'mode': 0}
09:07:16 T:5428 NOTICE: {}
09:07:16 T:5428 NOTICE: %%
09:07:16 T:4960 DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult- plugin returned successfully
09:07:16 T:5428 INFO: Scriptresult: Success
09:07:16 T:5428 INFO: Python script stopped
09:07:16 T:5428 DEBUG: Thread XBPyThread 5428 terminating
09:07:16 T:4960 DEBUG: waiting for python thread 12 to stop
09:07:16 T:4960 DEBUG: python thread 12 destructed
09:07:17 T:4960 DEBUG: SDLKeyboard: scancode: 50, sym: 0112, unicode: 0000, modifier: 0
09:07:17 T:4960 DEBUG: CApplication::OnKey: down (f081) pressed, action is Down
09:07:18 T:4960 DEBUG: SDLKeyboard: scancode: 50, sym: 0112, unicode: 0000, modifier: 0
09:07:18 T:4960 DEBUG: CApplication::OnKey: down (f081) pressed, action is Down
09:07:19 T:4960 DEBUG: SDLKeyboard: scancode: 1c, sym: 000d, unicode: 000d, modifier: 0
09:07:19 T:4960 DEBUG: CApplication::OnKey: return (f00d) pressed, action is Select
09:07:19 T:4960 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.sbs2/?url=None&path=%28%27Programs%27%2C%29&name=Programs&mode=0)
09:07:19 T:4960 DEBUG: ParentPath = [plugin://plugin.video.sbs2]
09:07:19 T:4388 DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin SBS2('plugin://plugin.video.sbs2/','0','?url=None&path=%28%27Programs%27%2C%29&name=Programs&mode=0')
09:07:19 T:4388 INFO: initializing python engine.
09:07:19 T:4388 DEBUG: new python thread created. id=13
09:07:19 T:4388 DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - waiting on the SBS2 plugin...
09:07:19 T:5732 DEBUG: Thread XBPyThread start, auto delete: 0
09:07:19 T:5732 DEBUG: Python thread: start processing
09:07:19 T:5732 NOTICE: -->Python Interpreter Initialized<--
09:07:19 T:5732 DEBUG: XBPyThread::Process - The source file to load is J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2\default.py
09:07:19 T:5732 DEBUG: XBPyThread::Process - Setting the Python path to J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2;
J:\Users\John\AppData\Roaming\XBMC\addons\script.module.xbmcswift\lib;J:\Users\John\AppData\Roaming\XBMC\addons\script.module.simplejson\lib;
J:\Users\John\AppData\Roaming\XBMC\addons\script.module.beautifulsoup\lib;K:\General\XBMC\addons\script.module.pil\lib;
J:\Users\John\AppData\Roaming\XBMC\addons\script.common.plugin.cache\lib;J:\Users\John\AppData\Roaming\XBMC\addons\script.module.simple.downloader\lib;
J:\Users\John\AppData\Roaming\XBMC\addons\script.module.parsedom\lib;
J:\Users\John\AppData\Roaming\XBMC\addons\script.module.elementtree\lib;K:\General\XBMC\addons\script.module.pysqlite\lib;
K:\General\XBMC\system\python\DLLs;K:\General\XBMC\system\python\Lib;K:\General\XBMC\python26.zip;
K:\General\XBMC\system\python\lib\plat-win;
K:\General\XBMC\system\python\lib\lib-tk;K:\General\XBMC;K:\General\XBMC\system\python;
K:\General\XBMC\system\python\lib\site-packages;
09:07:19 T:5732 DEBUG: XBPyThread::Process - Entering source directory J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2
09:07:19 T:5732 DEBUG: Instantiating addon using automatically obtained id of "plugin.video.sbs2" dependent on
version 1.0 of the xbmc.python api
09:07:19 T:4960 DEBUG: ------ Window Init (DialogBusy.xml) ------
09:07:20 T:4388 INFO: Loading skin file: DialogProgress.xml
09:07:20 T:4388 DEBUG: DialogProgress::StartModal called
09:07:20 T:4388 DEBUG: ------ Window Init (DialogProgress.xml) ------
09:07:21 T:5732 INFO: -->Python script returned the following error<--
09:07:21 T:5732 ERROR: Error Type: <class 'httplib.IncompleteRead'>
09:07:21 T:5732 ERROR: Error Contents: IncompleteRead(1402 bytes read, 6790 more expected)
09:07:21 T:5732 ERROR: Traceback (most recent call last):
File "J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2\default.py", line 8, in <module>
import resources.scraper
File "J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2\resources\scraper.py", line 117, in <module>
SCRAPER = MenuItems()
File "J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2\resources\scraper.py", line 22, in __init__
self.main_txt = re.sub(r'^[^=]+=','', geturl(self.base + 'js/video-menu'))
File "J:\Users\John\AppData\Roaming\XBMC\addons\plugin.video.sbs2\resources\scraper.py", line 8, in geturl
return urllib2.urlopen(urllib2.Request(url, headers = {"Accept-Encoding":"gzip"})).read().decode('iso-8859-1', 'ignore').encode('ascii', 'ignore')
File "K:\General\XBMC\system\python\Lib\socket.py", line 348, in read
data = self._sock.recv(rbufsize)
File "K:\General\XBMC\system\python\Lib\httplib.py", line 522, in read
return self._read_chunked(amt)
File "K:\General\XBMC\system\python\Lib\httplib.py", line 571, in _read_chunked
value.append(self._safe_read(amt))
File "K:\General\XBMC\system\python\Lib\httplib.py", line 621, in _safe_read
raise IncompleteRead(''.join(s), amt)
IncompleteRead: IncompleteRead(1402 bytes read, 6790 more expected)
09:07:21 T:5732 INFO: -->End of Python script error report<--
Thanks again mate
Wyrm (xTV-SAF)
(2012-03-16, 22:53)bog_gob Wrote: Here are some additional channels not covered by the excellent repository xbmc-catchuptv-au.bog_gob,
Sorry, also just noticed that your link in your original message to the Ten plugin points to the Age download. You might want to edit the link to point to the correct file.
Wyrm (xTV-SAF)