From 8bba878709ced3f2b255da035bc9c093e7e8990d Mon Sep 17 00:00:00 2001 From: Mark Steward Date: Wed, 4 Dec 2013 12:02:09 +0000 Subject: [PATCH] Show title for imgur files --- earl.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/earl.pl b/earl.pl index 17c07d4..4e4387a 100755 --- a/earl.pl +++ b/earl.pl @@ -70,6 +70,7 @@ sub get_response { # Convert ajax URLs to non-js URLs (e.g. Twitter) # http://googlewebmastercentral.blogspot.com/2009/10/proposal-for-making-ajax-crawlable.html $url =~ s/#!/\?_escaped_fragment_=/; + $url =~ s#(//i.imgur.com/[^.]+)\.[^.]+$#$1#; # BBC News article: headline and summary paragraph if ( $url =~ m'^http://www\.bbc\.co\.uk/news/[-a-z]*-\d{7,}$' ) {