]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[extractor/common] fix typo in _extract_akamai_formats
authorRemita Amine <remitamine@gmail.com>
Thu, 4 May 2017 15:04:25 +0000 (16:04 +0100)
committerRemita Amine <remitamine@gmail.com>
Thu, 4 May 2017 15:07:08 +0000 (16:07 +0100)
youtube_dl/extractor/common.py

index 9541e5b424bd3828374c2e3a99e052971b5995f3..b9ad8461a0e242effc735e4e39905fc920ab0770 100644 (file)
@@ -2174,7 +2174,7 @@ class InfoExtractor(object):
     def _extract_akamai_formats(self, manifest_url, video_id, hosts={}):
         formats = []
         hdcore_sign = 'hdcore=3.7.0'
-        f4m_url = re.sub(r'(https?://[^/+])/i/', r'\1/z/', manifest_url).replace('/master.m3u8', '/manifest.f4m')
+        f4m_url = re.sub(r'(https?://[^/]+)/i/', r'\1/z/', manifest_url).replace('/master.m3u8', '/manifest.f4m')
         hds_host = hosts.get('hds')
         if hds_host:
             f4m_url = re.sub(r'(https?://)[^/]+', r'\1' + hds_host, f4m_url)