From 63a3ec1af7c8ac240b90f61dfdc68ffa9227f0cc Mon Sep 17 00:00:00 2001 From: bnewbold Date: Mon, 28 Dec 2015 11:42:12 +0100 Subject: update urls for December 2015 Note: aaaaarg.fail search doesn't actually work at the moment; not sure how (or if possible) to reference Items by md5sum --- circles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/circles.py b/circles.py index f4f7396..a574372 100755 --- a/circles.py +++ b/circles.py @@ -43,10 +43,10 @@ def aaaaarg_direct_url(md5sum): while len(idnum) < 6: idnum = '0' + idnum print idnum - return "http://books.2012.haip.cc.kiberpipa.net/datastore/books/marcell/aaarg/data/%s/%s.pdf" % (idnum[:3], idnum) + return "http://aaaaarg.fail/search?query=%s" % md5sum.lower() def libgen_direct_url(md5sum): - return "http://libgen.org/get?nametype=md5&md5=%s" % md5sum + return "http://libgen.io/get_new.php?md5=%s&open=2" % md5sum def closest_md5(key, l): """Takes a hash and a sorted list of hashes, tries to return the closest -- cgit v1.2.3