瀏覽代碼

[extractor/common] fix typo in _extract_akamai_formats

Remita Amine 8 年之前
父節點
當前提交
ff6f9a6704
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/common.py

+ 1 - 1
youtube_dl/extractor/common.py

@@ -2174,7 +2174,7 @@ class InfoExtractor(object):
     def _extract_akamai_formats(self, manifest_url, video_id, hosts={}):
     def _extract_akamai_formats(self, manifest_url, video_id, hosts={}):
         formats = []
         formats = []
         hdcore_sign = 'hdcore=3.7.0'
         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')
         hds_host = hosts.get('hds')
         if hds_host:
         if hds_host:
             f4m_url = re.sub(r'(https?://)[^/]+', r'\1' + hds_host, f4m_url)
             f4m_url = re.sub(r'(https?://)[^/]+', r'\1' + hds_host, f4m_url)