GoogleCodeArchives / xbmc-xstream-plugin

Automatically exported from code.google.com/p/xbmc-xstream-plugin
0 stars 0 forks source link

Xstream 1.30 Ustream.tv python error #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. chose Ustream.tv
2. Search or live 
3. Error

What is the expected output? What do you see instead?

23:46:33 T:2844386368  NOTICE: Thread Jobworker start, auto delete: true
23:46:33 T:2911495232  NOTICE: Thread XBPyThread start, auto delete: false
23:46:33 T:2911495232  NOTICE: -->Python Interpreter Initialized<--
23:46:34 T:2911495232  NOTICE:  [PLUGIN] xStream: load site ustream_tv and call 
function showCategories
23:46:36 T:2911495232   ERROR: EXCEPTION Thrown (PythonToCppException) : 
-->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'urllib2.HTTPError'>
                                            Error Contents: HTTP Error 404: Not Found
                                            Traceback (most recent call last):
                                              File "/home/xbian/.xbmc/addons/plugin.video.xstream/default.py", line 19, in <module>
                                                xstream.run()
                                              File "/home/xbian/.xbmc/addons/plugin.video.xstream/xstream.py", line 11, in run
                                                parseUrl()
                                              File "/home/xbian/.xbmc/addons/plugin.video.xstream/xstream.py", line 37, in parseUrl
                                                exec "plugin."+ sFunction +"()"
                                              File "<string>", line 1, in <module>
                                              File "/home/xbian/.xbmc/addons/plugin.video.xstream/sites/ustream_tv.py", line 54, in showCategories
                                                sHtmlContent = oRequestHandler.request()
                                              File "/home/xbian/.xbmc/addons/plugin.video.xstream/resources/lib/handler/requestHandler.py", line 44, in request
                                                return self.__callRequest()
                                              File "/home/xbian/.xbmc/addons/plugin.video.xstream/resources/lib/handler/requestHandler.py", line 81, in __callRequest
                                                oResponse = urllib2.urlopen(oRequest)
                                              File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
                                                return _opener.open(url, data, timeout)
                                              File "/usr/lib/python2.7/urllib2.py", line 407, in open
                                                response = meth(req, response)
                                              File "/usr/lib/python2.7/urllib2.py", line 520, in http_response
                                                'http', request, response, code, msg, hdrs)
                                              File "/usr/lib/python2.7/urllib2.py", line 445, in error
                                                return self._call_chain(*args)
                                              File "/usr/lib/python2.7/urllib2.py", line 379, in _call_chain
                                                result = func(*args)
                                              File "/usr/lib/python2.7/urllib2.py", line 528, in http_error_default
                                                raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
                                            HTTPError: HTTP Error 404: Not Found
                                            -->End of Python script error report<--
23:46:36 T:3040821792   ERROR: GetDirectory - Error getting 
plugin://plugin.video.xstream/?function=showCategories&sSiteUrl=http%3a%2f%2fwww
.ustream.tv%2fdiscovery%2flive%2fall&site=ustream_tv&title=Categories
23:46:36 T:3040821792   ERROR: 
CGUIMediaWindow::GetDirectory(plugin://plugin.video.xstream/?function=showCatego
ries&sSiteUrl=http%3a%2f%2fwww.ustream.tv%2fdiscovery%2flive%2fall&site=ustream_
tv&title=Categories) failed
23:46:36 T:2911495232  NOTICE: Thread BackgroundLoader start, auto delete: false

What version of the product are you using? On what operating system?
Xbian beta

Original issue reported on code.google.com by sherif.n...@gmail.com on 4 Mar 2014 at 10:01

GoogleCodeExporter commented 9 years ago
I think the page it trying not found 

http://www.ustream.tv/discovery/live/all&site=ustream_tv&title=Categories

Original comment by sherif.n...@gmail.com on 4 Mar 2014 at 10:02

GoogleCodeExporter commented 9 years ago
Ok fixed the issue, but however the plugin does not work a all,

Fixing the issue:

replacing the following block in 
"/home/xbian/.xbmc/addons/plugin.video.xstream/sites/ustream_tv.py" with:

URL_MAIN = 'http://www.ustream.tv'
URL_LIVE_DISCOVERY = 'http://www.ustream.tv/explore/all'
URL_SEARCH = 'http://www.ustream.tv/explore/all'
URL_CATEGORY_ALL = 'http://www.ustream.tv/explore/all'
URL_CATEGORY_SPORTS = 'http://www.ustream.tv/explore/sports'
URL_CATEGORY_ENTERTAINMENT = 'http://www.ustream.tv/explore/entertainment'
URL_CATEGORY_GAMING = 'http://www.ustream.tv/explore/gaming'
URL_CATEGORY_MUSIC = 'http://www.ustream.tv/explore/music'
URL_CATEGORY_ANIMALS = 'http://www.ustream.tv/explore/animals'
URL_CATEGORY_24 = 'http://www.ustream.tv/explore/all'
URL_CATEGORY_NEWS = 'http://www.ustream.tv/explore/news'

and after restart I got into categories in the xStream interface and I see 
nothing at all, and here is the log:

00:18:32 T:2911495232  NOTICE: -->Python Interpreter Initialized<--
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: call load methode
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: root folder: 
/home/xbian/.xbmc/addons/plugin.video.xstream
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: sites folder: 
/home/xbian/.xbmc/addons/plugin.video.xstream/sites
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: anime_proxer_me
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: 
anime_stream24_com
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: bild_de
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: br_online_de
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: bundesliga_de
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: 
burning_series_org
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: gstream_in
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: iload_to
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: kino_de
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: kino_to
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: kinokiste_com
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: movie2k_com
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: moviemaze_de
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: mtv_de
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: myp2p_eu
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: nba_de
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: radiotime_com
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: shoutcast_com
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: simpsons_to
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: southpark_de
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: ustream_tv
00:18:33 T:2911495232  NOTICE:  [PLUGIN] xStream: load plugin: wwitv_com
00:18:33 T:2941293632  NOTICE: Thread BackgroundLoader start, auto delete: false
00:18:36 T:2941293632  NOTICE: Thread XBPyThread start, auto delete: false
00:18:36 T:2941293632  NOTICE: -->Python Interpreter Initialized<--
00:18:36 T:2941293632  NOTICE:  [PLUGIN] xStream: load site ustream_tv and call 
function load
00:18:37 T:2941293632  NOTICE: Thread BackgroundLoader start, auto delete: false
00:18:46 T:2941293632  NOTICE: Thread XBPyThread start, auto delete: false
00:18:47 T:2941293632  NOTICE: -->Python Interpreter Initialized<--
00:18:47 T:2941293632  NOTICE:  [PLUGIN] xStream: load site ustream_tv and call 
function showCategories
00:18:55 T:2941293632  NOTICE: Thread BackgroundLoader start, auto delete: false

Original comment by sherif.n...@gmail.com on 4 Mar 2014 at 10:22