diff options
author | Nigel Taylor <njtaylor0101@gmail.com> | 2012-08-17 00:07:55 +0100 |
---|---|---|
committer | Nigel Taylor <njtaylor0101@gmail.com> | 2012-08-17 00:07:55 +0100 |
commit | e4a2c9f33d498f711355b34da9a8d418cf375c58 (patch) | |
tree | 1ea8bfdeb6dd4c83b7c465d054af62bbe79e42eb | |
parent | 65e74040d3c5edb8e790c481b346898fcb55df1c (diff) | |
parent | 36228b9f9239fd7e7301e194207844cb9fe623ed (diff) | |
download | get-flash-videos-e4a2c9f33d498f711355b34da9a8d418cf375c58.tar.gz |
Merge branch 'master' of git://github.com/monsieurvideo/get-flash-videos
-rw-r--r-- | lib/FlashVideo/Site/Redtube.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/FlashVideo/Site/Redtube.pm b/lib/FlashVideo/Site/Redtube.pm index debcd77..1b54986 100644 --- a/lib/FlashVideo/Site/Redtube.pm +++ b/lib/FlashVideo/Site/Redtube.pm @@ -10,11 +10,11 @@ sub find_video { my($title) = $browser->content =~ /<h1 class="videoTitle">([^<]+)</; - my($url) = $browser->content =~ /hashlink=([^&"]+)/; + my($url) = $browser->content =~ /mp4_url=([^&"]+)/; $url = uri_unescape($url); $browser->allow_redirects; - return $url, title_to_filename($title); + return $url, title_to_filename($title, "mp4"); } 1; |