marcosrautjr / bluecop-xbmc-repo

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

Free cable script error when selecting NBC #252

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Navigate to Free Cable plugin
2. Select NBC
3. Script failed error is thrown with the following stack trace:
14:25:21 T:6108   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python 
callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'NoneType' object has no attribute 'findAll'
                                            Traceback (most recent call last):
                                              File "C:\Users\ogrface\AppData\Roaming\XBMC\addons\plugin.video.free.cable\default.py", line 68, in <module>
                                                modes ( )
                                              File "C:\Users\ogrface\AppData\Roaming\XBMC\addons\plugin.video.free.cable\default.py", line 64, in modes
                                                exec 'sitemodule.%s()' % common.args.sitemode
                                              File "<string>", line 1, in <module>
                                              File "C:\Users\ogrface\AppData\Roaming\XBMC\addons\plugin.video.free.cable\resources\lib\nbc.py", line 24, in rootlist
                                                shows(BASE_URL,'Show Library')
                                              File "C:\Users\ogrface\AppData\Roaming\XBMC\addons\plugin.video.free.cable\resources\lib\nbc.py", line 30, in shows
                                                categories=menu.findAll('h3')
                                            AttributeError: 'NoneType' object has no attribute 'findAll'
                                            -->End of Python script error report<--
14:25:21 T:6084   ERROR: XFILE::CDirectory::GetDirectory - Error getting 
plugin://plugin.video.free.cable/?fanart=%22C%3a%5cUsers%5cogrface%5cAppData%5cR
oaming%5cXBMC%5caddons%5cplugin.video.free.cable%5cfanart.jpg%22&mode=%22nbc%22&
name=%22NBC%22&sitemode=%22rootlist%22&thumb=%22C%3a%5cUsers%5cogrface%5cAppData
%5cRoaming%5cXBMC%5caddons%5cplugin.video.free.cable%5cresources%5cimages%5cnbc.
png%22&url=%22%22

What is the expected output? What do you see instead?
I expect the list of shows to populate properly.

What version of the product are you using? On what operating system?
FreeCable v 0.7.6 by BlueCop
Windows 8.1
XBMC 12.3 "Frodo"

Please provide any additional information below.

Looks like a null reference to a variable called "menu" which should contain 
elements from a tree that have class "scet-gallery-nav".  I searched the DOM 
for any elements with this class, but there were none found.  The NBC site must 
have changed, therefore the nbc.py script needs to be updated.

Original issue reported on code.google.com by oug...@gmail.com on 20 Feb 2014 at 9:56