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

Internal Proxy Support #39

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Problème corrigé dans la gestion des erreurs
  • Loading branch information
remzouille committed Nov 5, 2023
commit ceb31998f29342fe59fce77231642dd060b76e51
4 changes: 2 additions & 2 deletions resources/lib/provider_templates/orange.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ def _auth_urlopen(self, url: str, headers: dict = None) -> tuple:
if res.code == 200:
return res.read(), auth['cookie'], auth['tv_token']
except HTTPError as error:
if error.code == 401:
log(f"cookie/token invalide, âge = {int(timestamp - auth['timestamp'])}", LogLevel.INFO)
if error.code == 403:
log("cette chaine ne fait pas partie de votre offre.", LogLevel.INFO)
break
if error.code == 401:
log(f"cookie/token invalide, âge = {int(timestamp - auth['timestamp'])}", LogLevel.INFO)
else:
log(f"erreur {error}", LogLevel.INFO)
raise
Expand Down
Loading