Skip to content

A feature-rich command-line audio/video downloader

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

Ricardo Garcia823fcda12a92
diff --git a/youtube-dl b/youtube-dl
index 08297e2e06..f059887a6e 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -847,7 +847,7 @@ class YoutubeIE(InfoExtractor):
return
# 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:
player_url = mobj.group(1)
else: