SVN: toys/rsget.pl/Video/.template

sparky sparky at pld-linux.org
Tue Oct 6 03:48:00 CEST 2009


Author: sparky
Date: Tue Oct  6 03:48:00 2009
New Revision: 10699

Added:
   toys/rsget.pl/Video/.template
Log:
- simple Video-getter template


Added: toys/rsget.pl/Video/.template
==============================================================================
--- (empty file)
+++ toys/rsget.pl/Video/.template	Tue Oct  6 03:48:00 2009
@@ -0,0 +1,23 @@
+#!/usr/bin/perl
+
+name: [NAME]
+short: V:[NAME]
+uri: qr{vsite\.com/}
+slots: 8
+status: OK [DATE]
+
+start:
+	GET( $-{_uri} );
+
+	! m{<title>(.*?)</title>};
+	my $fname = de_ml( $1 );
+	$fname =~ s{/}{_}g;
+	$fname .= ".flv";
+
+	INFO( name => $fname, quality => "flv" );
+
+	! m{file_uri_here:'(.*?)'};
+	my $file_uri = uri_unescape( $1 );
+	DOWNLOAD( $file_uri, fname => $fname );
+
+# vim:ts=4:sw=4


More information about the pld-cvs-commit mailing list