aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoracronymized <acronymized@server.fake>2013-01-18 21:26:09 +0200
committeracronymized <acronymized@server.fake>2013-01-18 21:26:09 +0200
commit23e687079a31cb7a1f212949f6eff727fa2ccaec (patch)
tree283332a624b3e7a096388fa54c100174ab6b24a7
parent83e5b383d07b69db7271bfa38e754aeb9026f7b3 (diff)
downloadget-flash-videos-23e687079a31cb7a1f212949f6eff727fa2ccaec.tar.gz
added support for motherless.com
-rw-r--r--lib/FlashVideo/Site/Motherless.pm22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/FlashVideo/Site/Motherless.pm b/lib/FlashVideo/Site/Motherless.pm
new file mode 100644
index 0000000..c576e45
--- /dev/null
+++ b/lib/FlashVideo/Site/Motherless.pm
@@ -0,0 +1,22 @@
+# Part of get-flash-videos. See get_flash_videos for copyright.
+package FlashVideo::Site::Motherless;
+
+use strict;
+use FlashVideo::Utils;
+
+sub find_video {
+ my ($self, $browser, $embed_url) = @_;
+
+ my $url;
+ if ($browser->content =~ /file: '([^']+)'/) {
+ $url = $1."?start=0";
+ } else {
+ die "Unable to extract video url";
+ }
+
+ (my $title) = extract_title($browser) =~ /:\s+(.*)/;
+
+ return $url, title_to_filename($title, "flv");
+}
+
+1;