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

[rtbf] replay issues #1028

Open
nirolfa opened this issue Dec 28, 2022 · 18 comments
Open

[rtbf] replay issues #1028

nirolfa opened this issue Dec 28, 2022 · 18 comments

Comments

@nirolfa
Copy link

nirolfa commented Dec 28, 2022

strange issue with

exposure.api.redbee.live (v2/customer/RTBF/businessunit/Auvio/)
and
login.rtbf.be (/accounts.login?loginID)

connection error : failed to establish connection 0xd04e8838
connection error : failed to establish connection 0xd5e75980

after 10 retries or waiting 2 min and retry it works
but have to do this everytime before watching a new replay

started to happen around 26/12/2022

@nirolfa
Copy link
Author

nirolfa commented Dec 28, 2022

peut être lié au #1022
je vais re-tester avec dernier build

@nirolfa
Copy link
Author

nirolfa commented Dec 29, 2022

dernier build ne corrige pas le problème

@darodi
Copy link
Contributor

darodi commented Dec 29, 2022

@nirolfa

toujours en cours de correction ici

#1017

@joaopa00
Copy link
Contributor

joaopa00 commented Jan 4, 2023

Est-ce que la requête est prête à mettre poussée? Elle a toujours le statut "DRAFT"

@darodi
Copy link
Contributor

darodi commented Jan 6, 2023

@joaopa00

Je viens de push la bonne version.
Testé sous rpi osmc et windows.
On peut merger.

@darodi
Copy link
Contributor

darodi commented Jan 8, 2023

@nirolfa

Problème toujours présent depuis le merge de #1017?
Si oui, comment le reproduire? Quelle vidéo?

@nirolfa
Copy link
Author

nirolfa commented Jan 10, 2023

fixed, merci ;)

@nirolfa nirolfa closed this as completed Jan 10, 2023
@nirolfa
Copy link
Author

nirolfa commented Jan 12, 2023

retour du bug

meme problème qu'avant :(
pourtant ça marchait hier et avant hier ....
pas possible de s'inspirer de https://github.com/yt-dlp/yt-dlp ? (je sais pas si ça peut aider )

@nirolfa nirolfa reopened this Jan 12, 2023
@darodi
Copy link
Contributor

darodi commented Jan 12, 2023

@nirolfa

normalement, yt-dlp ne permet plus de télécharger quoi que ce soit de auvio depuis les DRM.

@darodi
Copy link
Contributor

darodi commented Jan 12, 2023

@nirolfa

Quel retour de bug?
Quelle version de CUTVM?
Le live et le replay marchent sans problème pour moi.
Quelle est la procédure pour reproduire le cas?
Merci

@nirolfa
Copy link
Author

nirolfa commented Jan 14, 2023

@darodi
sorry, j'ai refait qq tests donc

kodi 19.4 + windows = ok

kodi 19.4 + libreelec/raspbery :

  • replay semble ok
    (mais parfois il me semble que j'ai un httpsconnectionpool error sur /v2/customer/RTBF/businessunit /auvio/auth/gigyaLogin)
    • live tv nok
      HttpConnectionPool
      url api/partner/generic/live/planningcurrent?v=8channel=laune&target_site=meidaz&partner_l
      => NewConnectionError urllib3.connection.HTTPConnection
      line 174 in urlib3/connection.py

c'est assez bizzare, je comprend pas
j 'essaie d envoyer les logs full ce soir

@darodi
Copy link
Contributor

darodi commented Jan 14, 2023

@nirolfa

Live depuis le menu TV de kodi ou depuis le menu Live TV de CUTVM?

@nirolfa
Copy link
Author

nirolfa commented Jan 14, 2023

j'ai essayé les 2 et même erreur dans les 2 cas
(par contre sous win ca marche meme depuis le menu tv de kodi !!)

@nirolfa
Copy link
Author

nirolfa commented Jan 14, 2023

022-12-31 20:11:30.993 T:1528 INFO : Python interpreter stopped
2022-12-31 20:11:32.630 T:1530 ERROR : [Catch-up-TV-&-More.support] 403 Client Error: Forbidden for url: https://exposure.api.redbee.live/v2/customer/RTBF/businessunit/Auvio/entitlement/live_436119_6BA97Bb/play
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/resolver.py", line 67, in call
results = super(Resolver, self).call(route, args, kwargs)
File "/storage/.kodi/addons/script.module.codequick/lib/codequick/script.py", line 169, in call
return route.function(self, *args, **kwargs)
File "/storage/.kodi/addons/plugin.video.catchuptvandmore/resources/lib/channels/be/rtbf.py", line 697, in get_live_url
return get_video_redbee(plugin, external_id, is_drm)
File "/storage/.kodi/addons/plugin.video.catchuptvandmore/resources/lib/channels/be/rtbf.py", line 475, in get_video_redbee
video_format, forced_drm = get_redbee_format(plugin, video_id, redbee_jwt['sessionToken'], is_drm)
File "/storage/.kodi/addons/plugin.video.catchuptvandmore/resources/lib/channels/be/rtbf.py", line 794, in get_redbee_format
formats = urlquick.get(url, headers=headers, max_age=-1).json()['formats']
File "/storage/.kodi/addons/script.module.codequick/lib/urlquick.py", line 493, in get
return request('get', url, params=params, **kwargs)
File "/storage/.kodi/addons/script.module.codequick/lib/urlquick.py", line 487, in request
return s.request(method=method, url=url, **kwargs)
File "/storage/.kodi/addons/script.module.codequick/lib/urlquick.py", line 442, in request
self._raise_for_status(response, raise_for_status)
File "/storage/.kodi/addons/script.module.codequick/lib/urlquick.py", line 415, in _raise_for_status
response.raise_for_status()
File "/storage/.kodi/addons/script.module.requests/lib/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://exposure.api.redbee.live/v2/customer/RTBF/businessunit/Auvio/entitlement/live_436119_6BA97Bb/play
2022-12-31 20:11:32.633 T:1530 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<--

2022-12-31 20:11:32.958 T:1530 INFO : Python interpreter stopped

@nirolfa
Copy link
Author

nirolfa commented Jan 14, 2023

Je sais pas si ca peut aider

https://exposure.api.redbee.live/v2/customer/RTBF/businessunit/Auvio/entitlement/live_437673_6BA97Bb/play?ifa=f286b2eb-165d-46fa-8cc7-f85cc9316ab8&deviceType=desktop&width=1920&height=577&pageUrl=https%3A%2F%2Fauvio.rtbf.be%2Flive%2Fexcalibur-lepee-magique-437673&domain=auvio.rtbf.be&mute=false&autoplay=true&supportedFormats=dash%2Chls%2Cmss%2Cmp3&supportedDrms=widevine

Json rsponse for formats

--
0 | Object { format: "DASH", mediaLocator: "https://C9851Ec-rbm-hilv.fsly.cdn.ebsd.ericsson.net/L25/6c240c64/0ca9256d.isml/.mpd?t=2023-01-14T15%3A53%3A00.000", liveDelay: 10000, … }
format | "DASH"
drm | Object { "com.widevine.alpha": {…} }
com.widevine.alpha | Object { certificateUrl: "https://rbm-rtbf.live.ott.irdeto.com/licenseServer/widevine/v1/rbm-rtbf/certificate", licenseServerUrl: "https://rbm-rtbf.live.ott.irdeto.com/licenseServer/widevine/v1/rbm-rtbf/license?contentId=0ca9256d&keyId=ddab6ebd-9ae9-433e-b85a-************&ls_session=eyJ0eXAiOiJKV1QiLCJraWQiOiIwOGIzODQwZS0wYThhLTQyYTItODNhNC03ZGM0Mzc0ZDJmYmEiLCJhbGciOiJIUzI1NiJ9.eyJhaWQiOiJyYm0tcnRiZiIsInN1YiI6IjlkMmJmNmI2ODA4YTQ4OTliMGZhOTQ5YjcwZDE3NDczXzZCQTk3QmIiLCJpYXQiOjE2NzM3MTY5ODIsImV4cCI6MTY3MzcyMDU4MiwianRpIjoicE1abzlKd08wa2M4OFJyOFNjOU1vcWVMOUwxc1B3ZzVXS0lxUHVQbjVYVT0iLCJlbnQiOlt7ImVwaWQiOiJkZWZhdWx0IiwiYmlkIjoiYmVsZ2lhbl82QkE5N0JiIn1dLCJpc2UiOnRydWV9.pMNfltsro_rFnkD7VJ4S_q_CryfBFPEvW9iigqp3o1c" }
certificateUrl | "https://rbm-rtbf.live.ott.irdeto.com/licenseServer/widevine/v1/rbm-rtbf/certificate"
licenseServerUrl | "https://rbm-rtbf.live.ott.irdeto.com/licenseServer/widevine/v1/rbm-rtbf/license?contentId=0ca9256d&keyId=ddab6ebd-9ae9-433e-b85a-********&ls_session=eyJ0eXAiOiJKV1QiLCJraWQiOiIwOGIzODQwZS0wYThhLTQyYTItODNhNC03ZGM0Mzc0ZDJmYmEiLCJhbGciOiJIUzI1NiJ9.eyJhaWQiOiJyYm0tcnRiZiIsInN1YiI6IjlkMmJmNmI2ODA4YTQ4OTliMGZhOTQ5YjcwZDE3NDczXzZCQTk3QmIiLCJpYXQiOjE2NzM3MTY5ODIsImV4cCI6MTY3MzcyMDU4MiwianRpIjoicE1abzlKd08wa2M4OFJyOFNjOU1vcWVMOUwxc1B3ZzVXS0lxUHVQbjVYVT0iLCJlbnQiOlt7ImVwaWQiOiJkZWZhdWx0IiwiYmlkIjoiYmVsZ2lhbl82QkE5N0JiIn1dLCJpc2UiOnRydWV9.pMNfltsro_rFnkD7VJ4S_q_CryfBFPEvW9iigqp3o1c"
mediaLocator | "https://C9851Ec-rbm-hilv.fsly.cdn.ebsd.ericsson.net/L25/6c240c64/0ca9256d.isml/.mpd?t=2023-01-14T15%3A53%3A00.000"
live

@darodi
Copy link
Contributor

darodi commented Jan 15, 2023

@nirolfa

Le lien du live était-il toujours live au moment de l'essai?
Dans la section live, il y a plusieurs liens quand une émission est suivie d'une autre sur la même chaîne.

Ici, il y a une erreur 403.
#1028 (comment)
Y-a-t’il eu une erreur sur /auvio/auth/gigyaLogin avant?
Le log ne donne pas tout le processus.

@nirolfa
Copy link
Author

nirolfa commented Jan 18, 2023

je vais regarder pour retester cette semaine et envoyer logs full.
Entre temps, nouveaux problèmes avec les replay maintenant ....
J'enverrai les 2 logs vendredi.

ps: yt-dlp marche (combiné à mp4decoder)

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

3 participants