diff options
author | NightKev <NightKev@Gmail.com> | 2012-09-28 01:28:11 -0700 |
---|---|---|
committer | NightKev <NightKev@Gmail.com> | 2012-09-28 01:28:11 -0700 |
commit | f9b888a2a19c6228ff760c000da07dca44290a4c (patch) | |
tree | 5c04bdccb02b2c8cb8ca7e0da52edc08b8ccdd06 | |
parent | 39a95cd26380a2ce5684582d6bde0a83a5c2274b (diff) | |
download | get-flash-videos-f9b888a2a19c6228ff760c000da07dca44290a4c.tar.gz |
okay, NOW it looks like it used to
note to self: remember to triple-check the preview before committing!
-rw-r--r-- | lib/FlashVideo/Site/Youtube.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/FlashVideo/Site/Youtube.pm b/lib/FlashVideo/Site/Youtube.pm index eeeda24..f5c58ad 100644 --- a/lib/FlashVideo/Site/Youtube.pm +++ b/lib/FlashVideo/Site/Youtube.pm @@ -61,8 +61,9 @@ sub find_video { my $video_id; if ($browser->content =~ /(?:var pageVideoId =|(?:CFG_)?VIDEO_ID'?\s*:)\s*'(.+?)'/ - || $browser->content =~ /&video_id=([^&]+)&/) { + || $browser->content =~ /video_id=([^&]+)/) { || $embed_url =~ /v=([^&]+)/) { + || $browser->content =~ /&video_id=([^&]+)&/) { $video_id = $1; } else { check_die($browser, "Couldn't extract video ID"); |