浏览代码

Improve swf player URL detection for RTMP (fixes issue #144)

Ricardo Garcia 15 年之前
父节点
当前提交
823fcda12a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube-dl

+ 1 - 1
youtube-dl

@@ -847,7 +847,7 @@ class YoutubeIE(InfoExtractor):
 				return
 				return
 
 
 			# Attempt to extract SWF player URL
 			# Attempt to extract SWF player URL
-			mobj = re.search(r'swfConfig.*"(http://.*?watch-.*?\.swf)"', video_webpage)
+			mobj = re.search(r'swfConfig.*"(http://.*?watch.*?-.*?\.swf)"', video_webpage)
 			if mobj is not None:
 			if mobj is not None:
 				player_url = mobj.group(1)
 				player_url = mobj.group(1)
 			else:
 			else: