Author: sparky
Date: Sun Jun 27 03:39:58 2010
New Revision: 11601

Added:
   toys/rsget.pl/Direct/.template   (contents, props changed)
Log:
- added template for Direct


Added: toys/rsget.pl/Direct/.template
==============================================================================
--- (empty file)
+++ toys/rsget.pl/Direct/.template      Sun Jun 27 03:39:58 2010
@@ -0,0 +1,26 @@
+# $Id$
+# Direct::[NAME] - File getter plugin for rsget.pl
+#
+# 2010 (c) ??? <?...@???.??>
+#              This program is free software,
+# you may distribute it under GPL v2 or newer.
+
+name: [NAME]
+short: Direct::[NAME]
+web: "http://rsget.pl/getters/Direct/[NAME]/";
+uri: qr{[NAME]://.*}
+slots: max
+status: OK [DATE]
+
+start:
+       GET( $-{_uri}, headonly => 1 );
+
+       ERROR( "file not found" )
+               if /404/;
+
+       my ( $name ) = $-{_referer} =~ m{.*/(.*)$};
+       INFO( name => $1, size => -1 );
+
+       DOWNLOAD( $-{_uri} );
+
+# vim: filetype=perl:ts=4:sw=4
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to