nhpdf 1.1__tar.gz → 1.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nhpdf
3
- Version: 1.1
3
+ Version: 1.5
4
4
  Summary: Download NHentai doujins as PDF
5
5
  Project-URL: Homepage, https://github.com/Aze543/NhentaiDoujinToPDFMaker
6
6
  Project-URL: Issues, https://github.com/Aze543/NhentaiDoujinToPDFMaker/issues
@@ -42,23 +42,12 @@ nhpdf 566212 563102 345987
42
42
 
43
43
  ### 🔧 How to Install (CLI Version)
44
44
 
45
- You can install the CLI tool in two ways:
46
-
47
- #### Option 1: From PyPI
45
+ You can install the CLI tool directly from the PyPI as long as you have Python (Refer to the 2nd flavors first step to install it):
48
46
 
49
47
  ```bash
50
48
  pip install nhpdf
51
49
  ```
52
50
 
53
- #### Option 2: Locally (Development)
54
-
55
- If you’ve cloned this repo:
56
-
57
- ```bash
58
- cd NhentaiDoujinToPDFMaker
59
- pip install .
60
- ```
61
-
62
51
  Now you can run it with:
63
52
 
64
53
  ```bash
@@ -79,13 +68,13 @@ python3 main.py
79
68
 
80
69
  ---
81
70
 
82
- ### 📥 How to Set Up (Script Version)
71
+ ### 📥 How to Set Up the Script
83
72
 
84
73
  > These instructions focus on **macOS**, but should work on **Windows** too (with small changes).
85
74
 
86
75
  #### 1. Install Python
87
76
 
88
- Search how to install Python for your OS.
77
+ Go to the [PythonWebsite](https://www.python.org/downloads/) to install Python for your OS.
89
78
 
90
79
  Check if Python is installed:
91
80
 
@@ -94,7 +83,7 @@ Check if Python is installed:
94
83
  python
95
84
  ```
96
85
 
97
- - **macOS**:
86
+ - **macOS/Linux**:
98
87
  ```bash
99
88
  python3
100
89
  ```
@@ -135,7 +124,7 @@ python main.py
135
124
  python3 main.py
136
125
  ```
137
126
 
138
- You should see:
127
+ You should see an ascii logo:
139
128
 
140
129
  ```
141
130
  NHENTAI DOUJIN-TO-PDF MAKER
@@ -159,7 +148,7 @@ Type the code of the nhentai doujin you want, then let the magic happen. The PDF
159
148
 
160
149
  **GitHub Repo**: [NhentaiDoujinToPDFMaker](https://github.com/Aze543/NhentaiDoujinToPDFMaker)
161
150
 
162
- You can download either version from the **[Releases](https://github.com/Aze543/NhentaiDoujinToPDFMaker/releases)** page.
151
+ You can download the script version from the **[Releases](https://github.com/Aze543/NhentaiDoujinToPDFMaker/releases)** page.
163
152
 
164
153
  ---
165
154
 
@@ -24,23 +24,12 @@ nhpdf 566212 563102 345987
24
24
 
25
25
  ### 🔧 How to Install (CLI Version)
26
26
 
27
- You can install the CLI tool in two ways:
28
-
29
- #### Option 1: From PyPI
27
+ You can install the CLI tool directly from the PyPI as long as you have Python (Refer to the 2nd flavors first step to install it):
30
28
 
31
29
  ```bash
32
30
  pip install nhpdf
33
31
  ```
34
32
 
35
- #### Option 2: Locally (Development)
36
-
37
- If you’ve cloned this repo:
38
-
39
- ```bash
40
- cd NhentaiDoujinToPDFMaker
41
- pip install .
42
- ```
43
-
44
33
  Now you can run it with:
45
34
 
46
35
  ```bash
@@ -61,13 +50,13 @@ python3 main.py
61
50
 
62
51
  ---
63
52
 
64
- ### 📥 How to Set Up (Script Version)
53
+ ### 📥 How to Set Up the Script
65
54
 
66
55
  > These instructions focus on **macOS**, but should work on **Windows** too (with small changes).
67
56
 
68
57
  #### 1. Install Python
69
58
 
70
- Search how to install Python for your OS.
59
+ Go to the [PythonWebsite](https://www.python.org/downloads/) to install Python for your OS.
71
60
 
72
61
  Check if Python is installed:
73
62
 
@@ -76,7 +65,7 @@ Check if Python is installed:
76
65
  python
77
66
  ```
78
67
 
79
- - **macOS**:
68
+ - **macOS/Linux**:
80
69
  ```bash
81
70
  python3
82
71
  ```
@@ -117,7 +106,7 @@ python main.py
117
106
  python3 main.py
118
107
  ```
119
108
 
120
- You should see:
109
+ You should see an ascii logo:
121
110
 
122
111
  ```
123
112
  NHENTAI DOUJIN-TO-PDF MAKER
@@ -141,7 +130,7 @@ Type the code of the nhentai doujin you want, then let the magic happen. The PDF
141
130
 
142
131
  **GitHub Repo**: [NhentaiDoujinToPDFMaker](https://github.com/Aze543/NhentaiDoujinToPDFMaker)
143
132
 
144
- You can download either version from the **[Releases](https://github.com/Aze543/NhentaiDoujinToPDFMaker/releases)** page.
133
+ You can download the script version from the **[Releases](https://github.com/Aze543/NhentaiDoujinToPDFMaker/releases)** page.
145
134
 
146
135
  ---
147
136
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "nhpdf"
7
- version = "1.1"
7
+ version = "1.5"
8
8
  dependencies = [
9
9
  "beautifulsoup4",
10
10
  "img2pdf",
@@ -18,10 +18,12 @@ def loading_animation() -> NoReturn:
18
18
  spinner = ['|', '/', '-', '\\']
19
19
  while not la:
20
20
  for frame in spinner:
21
- sys.stdout.write(f'\rDownloading the pages ({trunc((page/pages)*100)}%/{100}%)...{frame}')
21
+ sys.stdout.write(f'\rDownloading the pages ({trunc(((page-1)/pages)*100)}%/{100}%)...{frame}')
22
22
  sys.stdout.flush()
23
23
  time.sleep(0.1)
24
24
  if la:
25
+ sys.stdout.write(f'\rDownloading the pages (100%/100%)...{frame}')
26
+ sys.stdout.flush()
25
27
  break
26
28
 
27
29
  def download_image(raw_url: str) -> bytes:
@@ -34,7 +36,6 @@ def download_image(raw_url: str) -> bytes:
34
36
  return response.content
35
37
  return None
36
38
 
37
-
38
39
  def compile_images(raw: list, name: str) -> NoReturn:
39
40
  with ThreadPoolExecutor(max_workers=10) as executor:
40
41
  raw_images = list(executor.map(download_image, raw))
File without changes
File without changes
File without changes
File without changes