git://git.camperquake.de
/
videosite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb568fd
)
videosite: add shar.es, 2.ly, t.co URL shorteners
author
Ralf Ertzinger
<ralf@skytale.net>
Thu, 2 Dec 2010 13:00:44 +0000
(14:00 +0100)
committer
Ralf Ertzinger
<ralf@skytale.net>
Thu, 2 Dec 2010 13:00:44 +0000
(14:00 +0100)
videosite.pl
patch
|
blob
|
history
diff --git
a/videosite.pl
b/videosite.pl
index
691b8a3
..
3e4d022
100644
(file)
--- a/
videosite.pl
+++ b/
videosite.pl
@@
-163,11
+163,15
@@
sub expand_url_shortener {
'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--;