summary refs log tree commit diff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2017-05-04 16:04:25 +0100
committerRemita Amine <remitamine@gmail.com>2017-05-04 16:07:08 +0100
commitff6f9a67040c47ea1645e3f91f3153c212ebc7ca (patch)
tree667ba8e106dd94f27b898c3de27e15e0adc37528
parent0c265486016b06342fb257966474ce591667aaff (diff)
downloadyoutube-dl-ff6f9a67040c47ea1645e3f91f3153c212ebc7ca.tar.gz
youtube-dl-ff6f9a67040c47ea1645e3f91f3153c212ebc7ca.tar.xz
youtube-dl-ff6f9a67040c47ea1645e3f91f3153c212ebc7ca.zip
[extractor/common] fix typo in _extract_akamai_formats
-rw-r--r--youtube_dl/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 9541e5b42..b9ad8461a 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -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)