Skip to content

Commit

Permalink
[nhl] Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimeMF committed Dec 2, 2014
1 parent 6708542 commit 163c8ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions youtube_dl/extractor/nhl.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ def _extract_video(self, info):
initial_video_url = info['publishPoint']
if info['formats'] == '1':
parsed_url = compat_urllib_parse_urlparse(initial_video_url)
path = parsed_url.path
extension_index = path.rfind('.')
path = path[:extension_index] + '_sd' + path[extension_index:]
path = parsed_url.path.replace('.', '_sd.', 1)
data = compat_urllib_parse.urlencode({
'type': 'fvod',
'path': compat_urlparse.urlunparse(parsed_url[:2] + (path,) + parsed_url[3:])
Expand Down

0 comments on commit 163c8ba

Please sign in to comment.