diff options
author | Nigel Taylor <njtaylor0101@gmail.com> | 2013-03-09 16:15:58 -0800 |
---|---|---|
committer | Nigel Taylor <njtaylor0101@gmail.com> | 2013-03-09 16:15:58 -0800 |
commit | 29326a61b03e0621738c1c14b787be3532998dfa (patch) | |
tree | 1acc3abb718961110f4f488199e895db6bd9643e | |
parent | e99838b60187b54d28175af04948bfb97c480338 (diff) | |
parent | 915016fd7aad865f339085424f54016f8ac696a7 (diff) | |
download | get-flash-videos-29326a61b03e0621738c1c14b787be3532998dfa.tar.gz |
Merge pull request #105 from psycotica0/master
Fixed YouTube RegExp
-rw-r--r-- | debian/control | 2 | ||||
-rw-r--r-- | lib/FlashVideo/Site/Youtube.pm | 2 |
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 =~ /&video_id=([^&]+)&/) { $video_id = $1; } else { |