nhpdf 1.1__py3-none-any.whl → 1.5__py3-none-any.whl

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.
nhpdf/nhpdf.py CHANGED
@@ -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))
@@ -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
 
@@ -0,0 +1,6 @@
1
+ nhpdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ nhpdf/nhpdf.py,sha256=-s3M3XAsfBqpyUoBWw-_rw4QjpXa-iy_Df3ixKC00I8,3252
3
+ nhpdf-1.5.dist-info/METADATA,sha256=Aw74W5eB6wGJYIKA9jb8BxN6Sb2dec_yRmRO7rbjh1s,2873
4
+ nhpdf-1.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ nhpdf-1.5.dist-info/entry_points.txt,sha256=Dn0ISURSvQrGZMCOxYEA5ocSWU5DUOiT50J7FHZk5Xs,50
6
+ nhpdf-1.5.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- nhpdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- nhpdf/nhpdf.py,sha256=UCOMrCbjVINbv9tj-dxM--ajzOloU_4ti3DenI0arCY,3131
3
- nhpdf-1.1.dist-info/METADATA,sha256=euYbpRlYPAQGxNFW0V3thJ3gV67qRJq4BkHqWtZ9C8E,2864
4
- nhpdf-1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
- nhpdf-1.1.dist-info/entry_points.txt,sha256=Dn0ISURSvQrGZMCOxYEA5ocSWU5DUOiT50J7FHZk5Xs,50
6
- nhpdf-1.1.dist-info/RECORD,,
File without changes