Permalink
Browse files

gettitle: imgur has seven-char hashes now;

amazon should be less crashy;
dear christ that initial regex is horrible;
fixed a formatting bug in youtube video lengths;
added 4chan thread info through the extension API
  • Loading branch information...
1 parent 679a05d commit 21a25b7dd2ee2a814c20c9127a3b9ba2d6dd1dc4 @protospork committed Jan 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 misc/imgur.pl
View
@@ -68,7 +68,7 @@
}
# this line is for the JS-enabled pages, put it back in if /noscript disappears
#my @imagehashes = ($page->decoded_content =~ /<div id="([a-zA-Z0-9]{5})" class="post">/ig);
-my @imagehashes = ($page->decoded_content =~ /<div class="image" id="([[:alnum:]]{5})">/ig);
+my @imagehashes = ($page->decoded_content =~ /<div class="image" id="([[:alnum:]]{5,7})">/ig); #7 may not be enough 2013/1/18
print ((1 + $#imagehashes).' images ');
length $albumname > 120 ? die 'broken albumname parse' : say $albumname;
downloadalbum();

0 comments on commit 21a25b7

Please sign in to comment.