SVN: toys/rsget.pl/Get/SharingMatrix

sparky sparky at pld-linux.org
Fri Mar 12 03:26:53 CET 2010


Author: sparky
Date: Fri Mar 12 03:26:52 2010
New Revision: 11253

Modified:
   toys/rsget.pl/Get/SharingMatrix
Log:
- restrict uris to correct ones and allow www1.s... links
- unify to minimal form


Modified: toys/rsget.pl/Get/SharingMatrix
==============================================================================
--- toys/rsget.pl/Get/SharingMatrix	(original)
+++ toys/rsget.pl/Get/SharingMatrix	Fri Mar 12 03:26:52 2010
@@ -9,9 +9,13 @@
 short: SM
 web: "http://sharingmatrix.com/"
 tos: "http://sharingmatrix.com/user_agreement"
-uri: qr{sharingmatrix\.com/}
+uri: qr{(?:www\d+\.)?sharingmatrix\.com/file/\d+}
 cookie: sm
-status: OK 2009-12-13
+status: OK 2010-03-12
+
+unify:
+	return "http://sharingmatrix.com/file/$1"
+		if m{/file/(\d+)};
 
 start:
 	GET( $-{_uri} );


More information about the pld-cvs-commit mailing list