Skip to content

Commit

Permalink
Fixed Multporn Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Official-Husko committed Jul 21, 2022
1 parent 385d10e commit a4ec09d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 22 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ dist/
build/

media/

.nn-d/
2 changes: 1 addition & 1 deletion Build Release.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pyinstaller --onefile --icon "icon.ico" --console --name "NN-Downloader" --upx-dir "Z:\Projects\Python\### UPX ###" --add-data="C:/Users/Official Husko/AppData/Local/Programs/Python/Python310/Lib/site-packages/grapheme/data/*;grapheme/data/" main.py
pyinstaller --onefile --icon "icon.ico" --console --name "NN-Downloader" --upx-dir "Z:\Projects\Python\### UPX ###" --add-data="Z:/Projects/Python/NN-Downloader/.nn-d/Lib/site-packages/grapheme/data/*;grapheme/data/" main.py
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from sys import exit


version = "1.3.0"
version = "1.3.1"
windll.kernel32.SetConsoleTitleW(f"NN-Downloader | v{version}")
proxy_list = []
header = {"User-Agent":f"nn-downloader/{version} (by Official Husko on GitHub)"}
Expand Down
26 changes: 6 additions & 20 deletions modules/multporn.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,26 @@ def Fetcher(proxy_list, user_proxies, header, URL):

# sort link for category
parts = URL.split("/")
type = parts[3]
title = parts[4]

if parts[3] == "comics":
if type in ["comics", "hentai_manga", "gay_porn_comics", "gif", "humor"]:
type = "field_com_pages"

if parts[3] == "hentai_manga":
type = "field_com_pages"

elif parts[3] == "pictures":
elif type in ["pictures", "hentai"]:
type = "field_img"

elif parts[3] == "rule_63":
elif type == "rule_63":
type = "field_rule_63_img"

elif parts[3] == "gay_porn_comics":
type = "field_com_pages"

elif parts[3] == "hentai":
type = "field_img"

elif parts[3] == "games":
elif type == "games":
type = "field_screenshots"

elif parts[3] == "video":
elif type == "video":
print("[ " + colored("i","blue") + " ] " + "Sorry but videos are currently not supported.")
sleep(5)
return

elif parts[3].lower() == "gif":
type = "field_com_pages"

elif parts[3] == "humor":
type = "field_com_pages"

else:
print("[ " + colored("i","blue") + " ] " + "Sorry but this type is not recognized. Please open a ticket with the link.")
sleep(5)
Expand Down

0 comments on commit a4ec09d

Please sign in to comment.