Skip to content

Commit a775f39

Browse files
committed
Get rid of unused code
1 parent d26e039 commit a775f39

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/srgssr.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -932,17 +932,12 @@ def get_auth_url(self, url, segment_data=None):
932932
url -- a given stream URL
933933
"""
934934
self.log('get_auth_url, url = %s' % url)
935-
# spl = urlparse.urlparse(url).path.split('/')
936935
spl = urlps(url).path.split('/')
937936
token = json.loads(
938937
self.open_url(
939938
'http://tp.srgssr.ch/akahd/token?acl=/%s/%s/*' %
940939
(spl[1], spl[2]), use_cache=False)) or {}
941940
auth_params = token.get('token', {}).get('authparams')
942-
if segment_data:
943-
# timestep_string = self._get_timestep_token(segment_data)
944-
# url += ('?' if '?' not in url else '&') + timestep_string
945-
pass
946941
if auth_params:
947942
url += ('?' if '?' not in url else '&') + auth_params
948943
return url

0 commit comments

Comments
 (0)