Skip to content

Commit

Permalink
Merge pull request #33 from remzouille/master
Browse files Browse the repository at this point in the history
Updates pour l'EPG et les logos
  • Loading branch information
BreizhReloaded authored Sep 1, 2023
2 parents e2a8309 + d8fcea1 commit 631914a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/lib/provider_templates/orange.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get_streams(self) -> list:
'id': channel_id,
'name': channel['name'],
'preset': channel['zappingNumber'],
'logo': channel['logos']['square'] if 'square' in channel['logos'] else None,
'logo': channel['logos']['square'].replace('%2F/', '%2F') if 'square' in channel['logos'] else None,
'stream': f'plugin://plugin.video.orange.fr/channel/{channel_id}',
'group': [group_name for group_name in self.groups if int(channel['id']) in self.groups[group_name]]
})
Expand Down Expand Up @@ -120,7 +120,7 @@ def get_epg(self) -> dict:
title = program['season']['serie']['title']
subtitle = program['title']
season_number = program['season']['number']
episode_number = program['episodeNumber']
episode_number = program['episodeNumber'] if 'episodeNumber' in program else None
episode = f'S{season_number}E{episode_number}'

image = None
Expand Down
2 changes: 1 addition & 1 deletion resources/lib/providers/fr/orange.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def __init__(self) -> None:
super().__init__(
endpoint_stream_info = 'https://mediation-tv.orange.fr/all/live/v3/applications/PC/users/me/channels/{channel_id}/stream?terminalModel=WEB_PC',
endpoint_streams = 'https://mediation-tv.orange.fr/all/live/v3/applications/PC/channels?mco=OFR',
endpoint_programs = 'https://mediation-tv.orange.fr/all/live/v3/applications/PC/programs?period={period}&mco=OFR',
endpoint_programs = 'https://rp-ott-mediation-tv.woopic.com/api-gw/live/v3/applications/PC/programs?period={period}&mco=OFR',
groups = {
'TNT': \
[192, 4, 80, 34, 47, 118, 111, 445, 119, 195, 446, 444, 234, 78, 481, 226, 458, 482, 3163, 1404, 1401, 1403, 1402, 1400, 1399, 112, 2111],
Expand Down

0 comments on commit 631914a

Please sign in to comment.