Skip to content

Commit 5c69b0f

Browse files
Removes a hardcoded url
1 parent 4eecf64 commit 5c69b0f

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
@@ -50,7 +50,7 @@ def parse(node):
5050
if not match:
5151
return None
5252

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

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

0 commit comments

Comments
 (0)