Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cnews replay in error #1243

Closed
gilles0606 opened this issue Nov 11, 2023 · 2 comments
Closed

Cnews replay in error #1243

gilles0606 opened this issue Nov 11, 2023 · 2 comments

Comments

@gilles0606
Copy link

hello,

cnews replay generate error.

2023-11-11 20:39:09.392 T:2177 error : [Catch-up-TV-&-More.support] 403 Client Error: Forbidden for url: https://www.cnews.fr/les-replays
Traceback (most recent call last):
File "/storage/.kodi/addons/script.module.codequick/lib/codequick/support.py", line 306, in run_callback
redirect = parent_ins(route, arg_params, self.callback_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.codequick/lib/codequick/route.py", line 196, in call
session_data = self._process_results(results)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.codequick/lib/codequick/route.py", line 210, in _process_results
listitems = validate_listitems(results)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.codequick/lib/codequick/route.py", line 39, in validate_listitems
raw_listitems = list(raw_listitems)
^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/plugin.video.catchuptvandmore/resources/lib/channels/fr/cnews.py", line 83, in list_emissions
resp = urlquick.get(URL_REPLAY_CNEWS, max_age=-1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.codequick/lib/urlquick.py", line 492, in get
return request('get', url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.codequick/lib/urlquick.py", line 486, in request
return s.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.module.codequick/lib/urlquick.py", line 441, in request
self._raise_for_status(response, raise_for_status)
File "/storage/.kodi/addons/script.module.codequick/lib/urlquick.py", line 414, in _raise_for_status
response.raise_for_status()
File "/storage/.kodi/addons/script.module.requests/lib/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://www.cnews.fr/les-replays
2023-11-11 20:39:09.397 T:2177 error : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'AttributeError'>
Error Contents: 'HTTPError' object has no attribute 'code'
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.catchuptvandmore/addon.py", line 23, in
main()
File "/storage/.kodi/addons/plugin.video.catchuptvandmore/addon.py", line 19, in main
main.error_handler(exception)
File "/storage/.kodi/addons/plugin.video.catchuptvandmore/resources/lib/main.py", line 290, in error_handler
code = exception.code
^^^^^^^^^^^^^^
AttributeError: 'HTTPError' object has no attribute 'code'
-->End of Python script error report<--

thanks...

@joaopa00
Copy link
Contributor

Merci pour le report de bug. Devrait être fixé dans GIT.

@gilles0606
Copy link
Author

merci je confirme que cela refonctionne...
1000 Merci à toi...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants