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 H.S. #1351

Closed
gilles0606 opened this issue May 18, 2024 · 2 comments
Closed

Cnews Replay H.S. #1351

gilles0606 opened this issue May 18, 2024 · 2 comments

Comments

@gilles0606
Copy link

J'ai bien la dernière version

Describe the bug

Le replay de cnews ne marche plus

To Reproduce

juste essayer le replay de cnews

Expected behaviour

J'ai mis les logs à la fin du message

Your environment

  • [* ] Raspberry-Pi libreelec latest

Debug log

2024-05-18 07:16:19.578 T:1922 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 85, in list_emissions
resp = urlquick.get(URL_REPLAY_CNEWS, headers=GENERIC_HEADERS, 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
2024-05-18 07:16:19.580 T:1922 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 297, in error_handler
code = exception.code
^^^^^^^^^^^^^^
AttributeError: 'HTTPError' object has no attribute 'code'
-->End of Python script error report<--

merci

@joaopa00
Copy link
Contributor

Devrait être fixé dans Git

@gilles0606
Copy link
Author

Je confirme que cela refonctionne.
GRAND MERCI

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