SVN: toys/rsget.pl/Link/Simple
sparky
sparky at pld-linux.org
Mon Jun 28 00:40:05 CEST 2010
Author: sparky
Date: Mon Jun 28 00:40:03 2010
New Revision: 11610
Modified:
toys/rsget.pl/Link/Simple
Log:
- linkhider no longer operative
- don't be so strict about meta and frame tags
Modified: toys/rsget.pl/Link/Simple
==============================================================================
--- toys/rsget.pl/Link/Simple (original)
+++ toys/rsget.pl/Link/Simple Mon Jun 28 00:40:03 2010
@@ -11,7 +11,6 @@
uri: qr{4gk\.com/}
uri: qr{xurl\.jp/}
uri: qr{tinyurl\.com/}
-uri: qr{linkhider\.com/}
uri: qr{to\./}
uri: qr{anonym-to\.com/\?}
slots: max
@@ -26,10 +25,10 @@
my $link;
if ( $-{_referer} =~ m#^$serv# ) {
- if ( m#<meta http-equiv="refresh" content="\d+;\s*url='?(.*?)'?">#i ) {
- $link = $1;
- } elsif ( m#<i?frame\s+.*?src="(http://.*?)">#i ) {
- $link = $1;
+ if ( m#<meta\s+http-equiv=("|')refresh\1\s+content=("|')\s*\d+;\s*url=("|'|)(.*?)\3\s*\2\s*>#si ) {
+ $link = $4;
+ } elsif ( m#<i?frame\s+.*?src=("|')(http://.*?)\1>#si ) {
+ $link = $2;
} else {
ERROR( "can't find link" );
}
More information about the pld-cvs-commit
mailing list