Jump to content

Global Search broken?


cgrey000

Recommended Posts

cgrey000

Not sure when this started - I don't use it very often, but I know it worked in the past month.

 

Trying the global search function results in a script failed error. Relevant section of the XBMC log below:

 

13:56:07 T:7308   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: object of type 'NoneType' has no len()
                                            Traceback (most recent call last):
                                              File "C:\Users\CL\AppData\Roaming\XBMC\addons\plugin.video.xbmb3c\default.py", line 2892, in <module>
                                                getContent(param_url)
                                              File "C:\Users\CL\AppData\Roaming\XBMC\addons\plugin.video.xbmb3c\default.py", line 1362, in getContent
                                                dirItems = processSearch(url, result, progress)
                                              File "C:\Users\CL\AppData\Roaming\XBMC\addons\plugin.video.xbmb3c\default.py", line 1807, in processSearch
                                                'fanart_image' : downloadUtils.getArtwork(item, "Backdrop") ,
                                              File "C:\Users\CL\AppData\Roaming\XBMC\addons\plugin.video.xbmb3c\resources\lib\DownloadUtils.py", line 174, in getArtwork
                                                totalbackdrops = len(data.get("BackdropImageTags"))
                                            TypeError: object of type 'NoneType' has no len()
                                            -->End of Python script error report<--
13:56:07 T:8992   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.xbmb3c/?url=http%3A//s2%3A8096/mediabrowser/Search/Hints%3F5c3399f096c3cb1a6830fb05be892769&mode=2
13:56:07 T:8992   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.xbmb3c/?url=http%3A//s2%3A8096/mediabrowser/Search/Hints%3F5c3399f096c3cb1a6830fb05be892769&mode=2) failed

 

Link to comment
Share on other sites

xnappo

Yep - that is due to the recent changes - good find.  Need to do a check in data.get("BackdropImageTags")!=None, and if then assign totalbackdrops, otherwise totalbackdrops=0.

 

xnappo

Link to comment
Share on other sites

  • 2 months later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...