diff options
author | Paul Wise <pabs3@bonedaddy.net> | 2012-11-04 19:46:06 +0800 |
---|---|---|
committer | Paul Wise <pabs3@bonedaddy.net> | 2012-12-16 13:59:46 +0800 |
commit | b32ea937e8a6465cdc96d89572b9850658ec2172 (patch) | |
tree | e760de353a27df8c5a1ec5b997ca2e3ce28bfd3d | |
parent | 545901d297b07bb29f591a475da2d44f6e1c4a46 (diff) | |
download | get-flash-videos-b32ea937e8a6465cdc96d89572b9850658ec2172.tar.gz |
Handle third-party websites embedding Youku videos.
-rw-r--r-- | lib/FlashVideo/Site/Youku.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/FlashVideo/Site/Youku.pm b/lib/FlashVideo/Site/Youku.pm index c4a0e30..b487aec 100644 --- a/lib/FlashVideo/Site/Youku.pm +++ b/lib/FlashVideo/Site/Youku.pm @@ -24,7 +24,8 @@ sub find_video { # Not quite the URL we expect, maybe it's the embedded one? die "Don't recognise the youku link" unless $embed_url =~ m`player.php/sid/(.+)/v\.swf` - or $embed_url =~ m`qplayer\.swf\?VideoIDS=([^&]+)`; + or $embed_url =~ m`qplayer\.swf\?VideoIDS=([^&]+)` + or $browser->content =~ m`player.php/sid/([^/]+)/v\.swf`; $embed_url = sprintf "http://v.youku.com/v_show/id_%s.html", $1; $browser->get( $embed_url ); |