Skip to content

Commit 9164d20

Browse files
Adds a hacky fix for download urls
1 parent 571a271 commit 9164d20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libgen_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def parse(node):
4949
if not match:
5050
return None
5151

52-
url = node.get('href')
52+
url = 'http://libgen.io/' + node.get('href').replace('ads.php', 'get.php')
5353

5454
format = match.group(1)
5555
size = match.group(2)

0 commit comments

Comments
 (0)