Skip to content

Commit 3797ed0

Browse files
fix bug #16
fix bug #16
2 parents 3d12836 + c5ccd2d commit 3797ed0

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

README.md

+1-9
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
Welcome to the successor of the [multporn image downloader v1][2] & [v2][1] and most downloaders out there regarding "NSFW" material. The NN-Downloader or Naughty-Naughty-Downloader (yes very creative I know) supports multiple sites with their official API (if available), and proxies and it's also portable.
44

5-
This project is unfinished and only works on the [listed][13] sites currently. More Documentation and other gibberish are planned.
6-
75
### Preview
86
![preview](https://github.com/Official-Husko/NN-Downloader/blob/dev/preview/preview.gif)
97

@@ -21,13 +19,7 @@ This project is unfinished and only works on the [listed][13] sites currently. M
2119
- [Yiffer][8]
2220
- [Luscious][16]
2321

24-
#### Planned:
25-
- [YiffGallery][9]
26-
- ~~[FurryBooru][10]~~ Is currently not possible due to Cloudflare blocking access when contacting their API.
27-
- [BooruPlus][11]
28-
- [nHentai][15]
29-
- [Pixiv][17]
30-
- [HentaiRead][18]
22+
<br />
3123

3224
[1]:https://github.com/Official-Husko/multporn-image-downloader-v2
3325
[2]:https://github.com/Official-Husko/multporn-image-downloader

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import sys
77
import inquirer
88

9-
version = "1.6.0"
9+
version = "1.6.1"
1010

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

modules/auto_update.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AutoUpdate:
1616

1717
def Checker():
1818
try:
19-
url = "https://api.github.com/repos/Official-Husko/NN-Downloader/releases/latest"
19+
url = "https://api.github.com/repos/Official-Husko/NN-Downloader/releases/latest?from=about"
2020

2121
headers = {
2222
"User-Agent":f"nn-downloader/{version} (by Official Husko on GitHub)",

modules/e6systems.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ def Fetcher(user_tags, user_blacklist, proxy_list, max_sites, user_proxies, apiU
6161

6262
if ai_training == True:
6363
meta_tags = item["tags"]
64+
else:
65+
meta_tags = []
6466

6567
post_tags = post_tags1 + post_tags2 + post_tags3 + post_tags4 + post_tags5
6668
image_format = item["file"]["ext"]
@@ -99,12 +101,17 @@ def Fetcher(user_tags, user_blacklist, proxy_list, max_sites, user_proxies, apiU
99101

100102
if not os.path.exists(f"media/{dt_now}_{safe_user_tags}"):
101103
os.mkdir(f"media/{dt_now}_{safe_user_tags}")
104+
102105
if not os.path.exists(f"media/{dt_now}_{safe_user_tags}/meta") and ai_training == True:
103106
os.mkdir(f"media/{dt_now}_{safe_user_tags}/meta")
107+
104108
with open(f"media/{dt_now}_{safe_user_tags}/{str(image_id)}.{image_format}", 'wb') as handler:
105109
handler.write(img_data)
106-
with open(f"media/{dt_now}_{safe_user_tags}/meta/{str(image_id)}.json", 'w') as handler:
107-
json.dump(meta_tags, handler, indent=6)
110+
111+
if ai_training == True:
112+
with open(f"media/{dt_now}_{safe_user_tags}/meta/{str(image_id)}.json", 'w') as handler:
113+
json.dump(meta_tags, handler, indent=6)
114+
108115
with open(f"db/{site}.db", "a") as db_writer:
109116
db_writer.write(f"{str(image_id)}\n")
110117
bar()

0 commit comments

Comments
 (0)