SVN: toys/rsget.pl/Link/Gazeta

sparky sparky at pld-linux.org
Wed Aug 4 03:25:22 CEST 2010


Author: sparky
Date: Wed Aug  4 03:25:21 2010
New Revision: 11758

Modified:
   toys/rsget.pl/Link/Gazeta
Log:
- main uri somewhat nicer for my userscript update tool


Modified: toys/rsget.pl/Link/Gazeta
==============================================================================
--- toys/rsget.pl/Link/Gazeta	(original)
+++ toys/rsget.pl/Link/Gazeta	Wed Aug  4 03:25:21 2010
@@ -8,7 +8,7 @@
 name: Gazeta
 short: L:Gazeta
 web: "http://www.gazeta.pl/"
-uri: qr{(?:[a-z]+)\.gazeta\.pl/\S+/\d+,\d+,\d+}
+uri: qr{(?:[a-z]+\.)?gazeta\.pl/\S+/\d+,\d+,\d+}
 uri: qr{groszki\.pl/\S+/\d+,\d+,\d+}
 uri: qr{lula.pl/\S+/\d+,\d+,\d+}
 uri: qr{plotek\.pl/\S+/\d+,\d+,\d+}
@@ -22,11 +22,11 @@
 
 	ERROR( "no video found" )
 		unless m{flashvars: "pid=swfObj&m=(.*?)&}
-			or m#<param name="FlashVars" value="m=(.*?)&#;
+			or m{<param name="FlashVars" value="m=(.*?)&};
 
 	GET( uri_unescape( $1 ) );
 
-	my @list = /<p>(.*?)<\/p>/g;
+	my @list = m{<p>(.*?)</p>}g;
 
 	LINK( @list );
 


More information about the pld-cvs-commit mailing list