[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux)
(2014-11-29, 00:38)corona Wrote:
(2014-11-25, 13:06)marcelveldt Wrote: Hi Andrew,

I'm using your modded version of the addon. First of all; the speed is indeed improved a lot by using requests in the code.
The thing I've noticed is that after a few days the plugin would stop working giving me this error:
PHP Code:
AttributeError'Session' object has no attribute 'redirect_cache' 

I can fix this error by manually deleting the session/cache file in the addon's userdata folder.

Looking at the code, there might be a try-catch around this function ?

PHP Code:
def load(urlpost None):
    
#return opener.open(url).read()
    
""
    
if post:
        
session.post(urldata=post).text
    
else:
        try:
            
session.get(url).text
        except
:
            
""
    
return 

Anyone else experiencing this issue or is it just me ?

Hi,
Yeah I did get the same issue myself, and have been testing a fix for a few days to check it works. It appears to be fine so it's pushed to my same repo:
https://gitlab.alelec.net/corona/plugin....netflixbmc

Hi,
I get this error:
Code:
21:09:12 T:140035512850176  NOTICE: -->Python Interpreter Initialized<--
21:09:15 T:140035512850176   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: can't pickle lock objects
                                            Traceback (most recent call last):
                                              File "/var/lib/vdr/.kodi/addons/plugin.video.netflixbmc/default.py", line 1060, in <module>
                                                index()
                                              File "/var/lib/vdr/.kodi/addons/plugin.video.netflixbmc/default.py", line 152, in index
                                                if login():
                                              File "/var/lib/vdr/.kodi/addons/plugin.video.netflixbmc/default.py", line 670, in login
                                                content = load(urlMain+"/Login")
                                              File "/var/lib/vdr/.kodi/addons/plugin.video.netflixbmc/default.py", line 99, in load
                                                saveState()
                                              File "/var/lib/vdr/.kodi/addons/plugin.video.netflixbmc/default.py", line 111, in saveState
                                                ser = pickle.dumps(session)
                                              File "/usr/lib/python2.7/copy_reg.py", line 70, in _reduce_ex
                                                raise TypeError, "can't pickle %s objects" % base.__name__
                                            TypeError: can't pickle lock objects
                                            -->End of Python script error report<--
21:09:15 T:140037268940672   ERROR: GetDirectory - Error getting plugin://plugin.video.netflixbmc/
21:09:15 T:140037268940672   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.netflixbmc/) failed
21:09:15 T:140035512850176  NOTICE: Thread BackgroundLoader start, auto delete: false

Any ideas how to fix this?
Reply


Messages In This Thread
Search empty? - by cgrey - 2014-01-11, 06:13
Not working on windows 7 - by dandiodati - 2014-02-26, 21:55
RE: [RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux) - by -Dis - 2014-11-29, 21:13
Problems with this addon - by builderjer - 2014-11-30, 19:55


Logout Mark Read Team Forum Stats Members Help
[RELEASE] NetfliXBMC - Unofficial Netflix Add-on (Win/OSX/Linux)7
This forum uses Lukasz Tkacz MyBB addons.