diff --git a/lib/srgssr.py b/lib/srgssr.py index 8742d90..c54973c 100644 --- a/lib/srgssr.py +++ b/lib/srgssr.py @@ -1074,7 +1074,7 @@ def get_auth_url(self, url, segment_data=None): spl = urlps(url).path.split('/') token = json.loads( self.open_url( - f'http://tp.srgssr.ch/akahd/token?acl=/{spl[1]}/{spl[2]}/*', + f'https://tp.srgssr.ch/akahd/token?acl=/{spl[1]}/{spl[2]}/*', use_cache=False)) or {} auth_params = token.get('token', {}).get('authparams') if auth_params: @@ -1272,7 +1272,7 @@ def get_subtitles(self, url, name): cap_comps = caption.split(':') lang = '.' + cap_comps[1] if len(cap_comps) > 1 else '' - sub_url = ('http://' + webvttbaseurl + '/' + cap_comps[0]) + sub_url = ('https://' + webvttbaseurl + '/' + cap_comps[0]) self.log('subtitle url: ' + sub_url) if not sub_url.endswith('.m3u8'): return [sub_url]