aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNigel Taylor <njtaylor0101@gmail.com>2013-03-09 16:15:58 -0800
committerNigel Taylor <njtaylor0101@gmail.com>2013-03-09 16:15:58 -0800
commit29326a61b03e0621738c1c14b787be3532998dfa (patch)
tree1acc3abb718961110f4f488199e895db6bd9643e
parente99838b60187b54d28175af04948bfb97c480338 (diff)
parent915016fd7aad865f339085424f54016f8ac696a7 (diff)
downloadget-flash-videos-29326a61b03e0621738c1c14b787be3532998dfa.tar.gz
Merge pull request #105 from psycotica0/master
Fixed YouTube RegExp
-rw-r--r--debian/control2
-rw-r--r--lib/FlashVideo/Site/Youtube.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/debian/control b/debian/control
index 2f94fb9..64c2404 100644
--- a/debian/control
+++ b/debian/control
@@ -27,7 +27,7 @@ Depends: libcrypt-blowfish-perl,
rtmpdump,
${misc:Depends},
${perl:Depends}
-Recommends: get_iplayer,
+Recommends: get-iplayer,
ffmpeg | libav-tools,
libcrypt-rijndeal-perl,
liblwp-protocol-socks-perl,
diff --git a/lib/FlashVideo/Site/Youtube.pm b/lib/FlashVideo/Site/Youtube.pm
index 0abcf15..09b2f50 100644
--- a/lib/FlashVideo/Site/Youtube.pm
+++ b/lib/FlashVideo/Site/Youtube.pm
@@ -68,7 +68,7 @@ sub find_video {
my $video_id;
if ($browser->content =~ /(?:var pageVideoId =|(?:CFG_)?VIDEO_ID'?\s*:)\s*'(.+?)'/
|| $browser->content =~ /[&?]video_id=([^&"]+)/
- || $embed_url =~ /v=([^&]+)/
+ || $embed_url =~ /v=([^&#]+)/
|| $browser->content =~ /&amp;video_id=([^&]+)&amp;/) {
$video_id = $1;
} else {