Skip to content

Commit 88c9b47

Browse files
committed
2.3.3
1 parent 2f7814d commit 88c9b47

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# 2.x
22

3+
## [2.3.3](https://github.com/f-lawe/plugin.video.orange.fr/releases/tag/v2.3.3) - 2025-01-15
4+
5+
### Changed
6+
- Miscellaneous code improvements and cleaning
7+
8+
### Fixed
9+
- Detection by IPTV Manager ([#73](https://github.com/f-lawe/plugin.video.orange.fr/issues/73))
10+
- Authentication to Orange servers ([#74](https://github.com/f-lawe/plugin.video.orange.fr/issues/74))
11+
312
## [2.3.2](https://github.com/f-lawe/plugin.video.orange.fr/releases/tag/v2.3.2) - 2024-12-05
413

514
### Changed

addon.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<addon id="plugin.video.orange.fr" name="Orange TV France" version="2.3.2" provider-name="Flawe">
2+
<addon id="plugin.video.orange.fr" name="Orange TV France" version="2.3.3" provider-name="Flawe">
33
<requires>
44
<import addon="xbmc.python" version="3.0.1"/>
55
<import addon="script.module.requests" version="2.31.0"/>

resources/lib/providers/abstract_orange_provider.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# ruff: noqa: D102
22
"""Orange provider template."""
33

4+
import json
45
import re
56
from abc import ABC
67
from datetime import date, datetime, timedelta
@@ -30,7 +31,6 @@
3031
_LIVE_HOMEPAGE_URL = "https://chaines-tv.orange.fr/"
3132
_CATCHUP_VIDEO_URL = "https://replay.orange.fr/videos/{stream_id}"
3233
_LOGIN_URL = "https://login.orange.fr"
33-
_LOGIN_URL = "https://login.orange.fr"
3434

3535

3636
class AbstractOrangeProvider(AbstractProvider, ABC):
@@ -259,20 +259,9 @@ def _retrieve_auth_data(self, auth_url: str, login: str = None, password: str =
259259
tv_token, tv_token_expires, wassup = (
260260
provider_session_data.get(k) for k in ("tv_token", "tv_token_expires", "wassup")
261261
)
262-
tv_token, tv_token_expires, wassup = (
263-
provider_session_data.get(k) for k in ("tv_token", "tv_token_expires", "wassup")
264-
)
265262

266263
if not tv_token_expires or datetime.utcnow().timestamp() > tv_token_expires:
267-
URL_ROOT = "https://chaines-tv.orange.fr"
268-
USER_AGENT_FIREFOX = "Mozilla/5.0 (Windows NT 10.0; rv:114.0) Gecko/20100101 Firefox/114.0"
269264
session = Session()
270-
session.headers = {
271-
"User-Agent": USER_AGENT_FIREFOX,
272-
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8",
273-
"Accept-Language": "fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3",
274-
"Accept-Encoding": "gzip, deflate, br",
275-
}
276265

277266
if not self._is_wassup_expired(wassup):
278267
log("Cookie reuse", xbmc.LOGINFO)

0 commit comments

Comments
 (0)