X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=videosite.pl;h=26ca48099274155a1f83158e8829d740d399a978;hb=1d7fcfba086f022ec85c2bbca513811c4c3eca27;hp=74afc42b07e54d5a084b89f583cc148553d3b928;hpb=6bdc7f34dc70e4bccf5475d852cc68e950c95497;p=videosite.git diff --git a/videosite.pl b/videosite.pl index 74afc42..26ca480 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:]]+', @@ -161,11 +161,18 @@ sub expand_url_shortener { 'j\.mp/[[:alnum:]]+', 'bit\.ly/[[:alnum:]]+', 'tinyurl\.com/[[:alnum:]]+', + 'pop\.is/[[:alnum:]]+', + 'post\.ly/[[:alnum:]]+', + '1\.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--;