2014-11-29, 00:38
(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(url, post = None):
#return opener.open(url).read()
r = ""
if post:
r = session.post(url, data=post).text
else:
try:
r = session.get(url).text
except:
r = ""
return r
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