diff options
author | Tomáš Čech <sleep_walker@suse.cz> | 2013-04-03 21:18:26 +0200 |
---|---|---|
committer | Tomáš Čech <sleep_walker@suse.cz> | 2013-04-03 21:18:26 +0200 |
commit | 06e376b1ea692f0bb2df2d228fc87a53d028e19f (patch) | |
tree | a2f34ded6348b9edca2553e67e68e074ff135565 | |
parent | 04985c2e9e26b1f8799f5273d55896df02a087ee (diff) | |
download | get-flash-videos-06e376b1ea692f0bb2df2d228fc87a53d028e19f.tar.gz |
let there be GosuPark.com plugin
-rw-r--r-- | lib/FlashVideo/Site/Gosupark.pm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/FlashVideo/Site/Gosupark.pm b/lib/FlashVideo/Site/Gosupark.pm new file mode 100644 index 0000000..3e285a4 --- /dev/null +++ b/lib/FlashVideo/Site/Gosupark.pm @@ -0,0 +1,24 @@ +# Part of get-flash-videos. See get_flash_videos for copyright. +package FlashVideo::Site::Gosupark; + +use strict; +use FlashVideo::Utils; + +our $VERSION = '0.01'; +sub Version() { $VERSION; } + +sub find_video { + my ($self, $browser, $embed_url) = @_; + my $url = ""; + + if ($browser->content =~ /.*\s*file: "(http:\/\/gosupark[^"]+).*",/) { + $url = $1; + } else { + return; + } + debug ("URL: '" . $url . "'"); + return $url, title_to_filename("", "mp4"); +} + +1; + |