浏览代码

[normalboots] Fix video url extraction

Jaime Marquínez Ferrándiz 11 年之前
父节点
当前提交
ffe8fe356a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/normalboots.py

+ 1 - 1
youtube_dl/extractor/normalboots.py

@@ -49,7 +49,7 @@ class NormalbootsIE(InfoExtractor):
             
         player_url = self._html_search_regex(r'<iframe\swidth="[0-9]+"\sheight="[0-9]+"\ssrc="(?P<url>[\S]+)"', webpage, 'url')
         player_page = self._download_webpage(player_url, video_id)
-        video_url = u'http://player.screenwavemedia.com/' + self._html_search_regex(r"'file':\s'(?P<file>[0-9A-Za-z-_\.]+)'", player_page, 'file')
+        video_url = self._html_search_regex(r"file:\s'(?P<file>[^']+\.mp4)'", player_page, 'file')
         
         info['url'] = video_url
         info['title'] = video_title