SVN: toys/rsget.pl/Audio/.template
sparky
sparky at pld-linux.org
Tue Nov 3 18:18:01 CET 2009
Author: sparky
Date: Tue Nov 3 18:18:01 2009
New Revision: 10935
Added:
toys/rsget.pl/Audio/.template (contents, props changed)
Log:
- new, based on Video/.template
Added: toys/rsget.pl/Audio/.template
==============================================================================
--- (empty file)
+++ toys/rsget.pl/Audio/.template Tue Nov 3 18:18:01 2009
@@ -0,0 +1,28 @@
+# $Id$
+# Audio::[NAME] - Audio getter plugin for rsget.pl
+#
+# 2009 (c) ??? <???@???.??>
+# This program is free software,
+# you may distribute it under GPL v2 or newer.
+
+name: [NAME]
+short: A:[NAME]
+uri: qr{asite\.com/}
+slots: max
+status: OK [DATE]
+
+start:
+ GET( $-{_uri} );
+
+ ! m{<title>(.*?)</title>};
+ my $fname = de_ml( $1 );
+ $fname =~ s{/}{_}g;
+ $fname .= ".mp3";
+
+ INFO( name => $fname, quality => "mp3" );
+
+ ! m{file_uri_here:'(.*?)'};
+ my $file_uri = uri_unescape( $1 );
+ DOWNLOAD( $file_uri, fname => $fname );
+
+# vim: filetype=perl:ts=4:sw=4
More information about the pld-cvs-commit
mailing list