X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=videosite.pl;h=3e4d0225127bfc8bb223cf458b0a0502ace9500c;hb=2e5bd4efe697f0102d328dd0372fdb8850aa46a8;hp=691ef04ceb1ce30ae34d4a3ca5296c68fbc5b637;hpb=542ba5f881a3de86e9d6b01c64dbdbcff172fbaf;p=videosite.git diff --git a/videosite.pl b/videosite.pl index 691ef04..3e4d022 100644 --- a/videosite.pl +++ b/videosite.pl @@ -153,7 +153,7 @@ sub expand_url_shortener { my $s = shift; my $os = ''; my @urlshortener = ( - 'is.\gd/[[:alnum:]]+', + 'is\.gd/[[:alnum:]]+', 'otf\.me/[[:alnum:]]+', 'hel\.me/[[:alnum:]]+', '7ax\.de/[[:alnum:]]+', @@ -162,11 +162,16 @@ sub expand_url_shortener { 'bit\.ly/[[:alnum:]]+', 'tinyurl\.com/[[:alnum:]]+', 'pop\.is/[[:alnum:]]+', + 'post\.ly/[[:alnum:]]+', + '2\.ly/[[:alnum:]]+', + 't\.co/[[:alnum:]]+', + 'shar\.es/[[:alnum:]]+', ); my $ua = LWP::UserAgent->new(agent => 'Mozilla', max_redirect => 0); my $i = 10; OUTER: while (($os ne $s) and ($i > 0)) { + study($s); $os = $s; $i--;