diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2012-08-09 10:23:34 -0700 |
---|---|---|
committer | Corbin Simpson <MostAwesomeDude@gmail.com> | 2012-08-09 10:39:07 -0700 |
commit | ca08cb178872da48e61995fbae855c79b4440433 (patch) | |
tree | a3d61c30d758a2f5dc04403f1864c044793ab9db | |
parent | c9701743041bf794751b73e16cf5f5e0f2a27543 (diff) | |
download | get-flash-videos-ca08cb178872da48e61995fbae855c79b4440433.tar.gz |
Site/Redtube: Switch to MP4.
Doesn't 404 like FLV. Fixes Google Code #323.
Obviously totally untested; I didn't author this patch. :3
-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; |