aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/nhl.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-12-03 00:08:26 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-12-03 00:08:26 +0100
commit163c8babaab947d243f4b8cc4e1fa0bc4b4e1603 (patch)
treeb6a8446968f3a9bb74fd3a2405a94b780723fe79 /youtube_dl/extractor/nhl.py
parent6708542099ac6a014f4699a3b746c39a98bc1c6d (diff)
[nhl] Simplify
Diffstat (limited to 'youtube_dl/extractor/nhl.py')
-rw-r--r--youtube_dl/extractor/nhl.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/extractor/nhl.py b/youtube_dl/extractor/nhl.py
index 7d74b110b..0244368e9 100644
--- a/youtube_dl/extractor/nhl.py
+++ b/youtube_dl/extractor/nhl.py
@@ -26,9 +26,7 @@ class NHLBaseInfoExtractor(InfoExtractor):
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:])