diff options
author | bnewbold <bnewbold@robocracy.org> | 2015-12-28 11:42:12 +0100 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2015-12-28 11:52:10 +0100 |
commit | 63a3ec1af7c8ac240b90f61dfdc68ffa9227f0cc (patch) | |
tree | 12f4406f05a3852c42c6fb0240315a023551f830 | |
parent | fbb7966182f48c787b44e2d8f4120daf339ce8c1 (diff) | |
download | circles-master.tar.gz circles-master.zip |
Note: aaaaarg.fail search doesn't actually work at the moment; not sure
how (or if possible) to reference Items by md5sum
-rwxr-xr-x | circles.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |