mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[nhl] Simplify
This commit is contained in:
parent
6708542099
commit
163c8babaa
1 changed files with 1 additions and 3 deletions
|
@ -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:])
|
||||
|
|
Loading…
Reference in a new issue