Skip to content

Commit

Permalink
[FR] Add channel paris-h24
Browse files Browse the repository at this point in the history
  • Loading branch information
SebMourlhou authored and joaopa00 committed May 9, 2024
1 parent f7fc299 commit 4787837
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resources/lib/channels/fr/francetv.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def get_video_url(plugin,
@Resolver.register
def get_live_url(plugin, item_id, **kwargs):

if item_id in ('spectacles-et-culture', 'france-2', 'france-3', 'france-4', 'france-5', 'franceinfo'):
if item_id in ('spectacles-et-culture', 'france-2', 'france-3', 'france-4', 'france-5', 'franceinfo', 'paris-h24'):
resp = urlquick.get(URL_LIVE % item_id, headers={'User-Agent': web_utils.get_random_ua()}, max_age=-1)
broadcast_id = re.compile(r'videoId\"\:\"(.*?)\"', re.DOTALL).findall(resp.text)[0]
return resolver_proxy.get_francetv_live_stream(plugin, broadcast_id)
Expand Down
8 changes: 8 additions & 0 deletions resources/lib/skeletons/fr_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,5 +857,13 @@
},
'enabled': True,
'order': 81
},
'paris-h24': {
'resolver': '/resources/lib/channels/fr/francetv:get_live_url',
'label': 'France TV Paris 2024',
'thumb': 'channels/fr/paris_h24.png',
'fanart': 'channels/fr/paris_h24_fanart.jpg',
'enabled': True,
'order': 82
}
}

0 comments on commit 4787837

Please sign in to comment.