youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 163c8babaab947d243f4b8cc4e1fa0bc4b4e1603
parent 6708542099ac6a014f4699a3b746c39a98bc1c6d
Author: Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Date:   Wed,  3 Dec 2014 00:08:26 +0100

[nhl] Simplify

Diffstat:
Myoutube_dl/extractor/nhl.py | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 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:])