Skip to content

Commit 2523bff

Browse files
update to 1.6.3
update to 1.6.3
2 parents 2dd22bb + 5c8acb0 commit 2523bff

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import sys
77
import inquirer
88

9-
version = "1.6.2"
9+
version = "1.6.3"
1010

1111
if os.name == 'nt':
1212
from ctypes import windll

modules/multporn.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,21 @@ def Fetcher(proxy_list, user_proxies, header, URL):
4949
else:
5050
raw_req = requests.get(URL, headers=header)
5151

52-
req = raw_req.headers
53-
5452
# extract item id
5553
try:
56-
raw_link = req["link"]
57-
except:
58-
print("[ " + colored("-","red") + " ] " + f"Please provide a correct link! If this is a mistake please open a ticket with the url.")
54+
if raw_req.headers.get("link", None) is not None:
55+
raw_link = raw_req.headers.get("link")
56+
57+
else:
58+
pattern = r'<link\s+rel="shortlink"\s+href="([^"]+)"\s*/?>'
59+
# Search for the pattern in the HTML content
60+
match = re.search(pattern, raw_req.text)
61+
62+
if match:
63+
raw_link = match.group(1)
64+
65+
except Exception as e:
66+
print("[ " + colored("-","red") + " ] " + f"Node Link not Found. Double check the link else report this. Error: {e}")
5967
sleep(5)
6068
return
6169

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ inquirer==3.1.3
1010
jinxed==1.2.0
1111
python-editor==1.0.4
1212
readchar==4.0.5
13-
requests==2.31.0
13+
requests==2.32.0
1414
six==1.16.0
1515
termcolor==2.3.0
1616
urllib3==2.0.7

0 commit comments

Comments
 (0)