浏览代码

[motherless:group] Capture leading slash of video path

Sergey M․ 7 年之前
父节点
当前提交
a133eb7764
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/motherless.py

+ 1 - 1
youtube_dl/extractor/motherless.py

@@ -153,7 +153,7 @@ class MotherlessGroupIE(InfoExtractor):
                 compat_urlparse.urljoin(base, video_path),
                 compat_urlparse.urljoin(base, video_path),
                 MotherlessIE.ie_key(), video_title=title)
                 MotherlessIE.ie_key(), video_title=title)
             for video_path, title in orderedSet(re.findall(
             for video_path, title in orderedSet(re.findall(
-                r'href="/([^"]+)"[^>]+>\s+<img[^>]+alt="[^-]+-\s([^"]+)"',
+                r'href="(/[^"]+)"[^>]+>\s+<img[^>]+alt="[^-]+-\s([^"]+)"',
                 webpage))
                 webpage))
         ]
         ]