Improve swf player URL detection for RTMP (fixes issue #144)
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Tue, 13 Jul 2010 16:22:34 +0000 (18:22 +0200)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:28:17 +0000 (11:28 +0100)
youtube-dl

index 08297e2e0664d9916331d7363359acf66cc32527..f059887a6e1afef8be3eaff1a82d4b68c7957b23 100755 (executable)
@@ -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: