SVN: toys/rsget.pl/Get/ArchivTo

sparky sparky at pld-linux.org
Mon Apr 5 22:33:18 CEST 2010


Author: sparky
Date: Mon Apr  5 22:33:17 2010
New Revision: 11310

Modified:
   toys/rsget.pl/Get/ArchivTo
Log:
- allow /GET/ uris; added unify


Modified: toys/rsget.pl/Get/ArchivTo
==============================================================================
--- toys/rsget.pl/Get/ArchivTo	(original)
+++ toys/rsget.pl/Get/ArchivTo	Mon Apr  5 22:33:17 2010
@@ -5,13 +5,20 @@
 #		This program is free software,
 # you may distribute it under GPL v2 or newer.
 
+# TODO: support video
+
 name: ArchivTo
 short: AT
 web: "http://archiv.to/"
 tos: "http://archiv.to/?Module=Policy"
 uri: qr{archiv\.to/\?.*?HashID=FILE[0-9A-F]+}
+uri: qr{archiv\.to/GET/FILE[0-9A-F]+}
 slots: max
-status: OK 2010-03-11
+status: OK 2010-04-05
+
+unify:
+	return "http://archiv.to/GET/$1"
+		if m{(FILE[0-9A-F]+)};
 
 start:
 	GET( $-{_uri} );


More information about the pld-cvs-commit mailing list