(2017-11-30, 23:50)JinJin Wrote: try the following:
https://forum.kodi.tv/showthread.php?tid...pid2639916
Hi JinJin, first of all thank you for makiing this addon.
I tried to reset to defaults, and reenter username and password, but it still does not work.
What I did:
- Installed the addon (version 2.0.5)
- launched the addon from the kodi menu. It did not ask me for username and password, but gave me an error popup in kodi and the kodi log sad[1]
- then I reset the addon back to defaults in the addon settings
- launched the addon again: it asked me for username and password, but then it gave me the same error
I had a look at .kodi/userdata/addon_data/plugin.video.eurosportplayer/settings.xml, and it was like this:
<settings>
<setting id="access_token" value="" />
<setting id="content" value="videos" />
<setting id="country" value="" />
<setting id="device_id" value="" />
<setting id="email" value="" />
<setting id="force_view" value="false" />
<setting id="language" value="" />
<setting id="password" value="" />
<setting id="quality" value="3" />
<setting id="refresh_token" value="" />
<setting id="view_id" value="55" />
</settings>
then I tried to
- close kodi
- edit settings.xml and set email and password by hand
- started kodi again
- ran the plugin
but same error as before.
Can I try something else? Maybe I have an old version of some python lib? What could I try to debug this? I would really like to make it work.
[1]
07:52:47.379 T:140102516983552 ERROR: GetDirectory - Error getting
07:53:45.050 T:140102822180608 ERROR: Previous line repeats 6 times.
07:53:45.050 T:140102822180608 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'urllib2.URLError'>
Error Contents: <urlopen error [Errno 0] Error>
Traceback (most recent call last):
File "/home/s2/.kodi/addons/plugin.video.eurosportplayer/addon.py", line 7, in <module>
client = Client()
File "/home/s2/.kodi/addons/plugin.video.eurosportplayer/resources/lib/client.py", line 21, in __init__
self.refresh_token()
File "/home/s2/.kodi/addons/plugin.video.eurosportplayer/resources/lib/client.py", line 144, in refresh_token
self.login()
File "/home/s2/.kodi/addons/plugin.video.eurosportplayer/resources/lib/client.py", line 160, in login
data = self.authentication(credentials)
File "/home/s2/.kodi/addons/plugin.video.eurosportplayer/resources/lib/client.py", line 113, in authentication
'authorization': self.authorization(grant_type='client_credentials')['access_token']
File "/home/s2/.kodi/addons/plugin.video.eurosportplayer/resources/lib/client.py", line 107, in authorization
return requests.post(self.TOKEN_URL, headers=headers, data=post_data).json()
File "/home/s2/.kodi/addons/plugin.video.eurosportplayer/resources/lib/simple_requests/api.py", line 184, in post
return _request('POST', url, data=data, json=json, **kwargs)
File "/home/s2/.kodi/addons/plugin.video.eurosportplayer/resources/lib/simple_requests/api.py", line 154, in _request
response = opener.open(request, timeout=timeout)
File "/usr/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open
context=self._context)
File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 0] Error>
-->End of Python script error report<--
07:53:45.093 T:140103699020160 ERROR: GetDirectory - Error getting plugin://plugin.video.eurosportplayer/
07:53:45.094 T:140103699020160 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.eurosportplayer/) failed