nhpdf 1.5__py3-none-any.whl → 1.6__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
@@ -29,7 +29,7 @@ def loading_animation() -> NoReturn:
|
|
29
29
|
def download_image(raw_url: str) -> bytes:
|
30
30
|
global pages, page
|
31
31
|
page += 1
|
32
|
-
img_code, f_type = re.search(r'/(\d+)', raw_url['data-src']).group(), re.search(r'\b(.(jpg|jpeg|png|webp))\b', raw_url['data-src']).group()
|
32
|
+
img_code, f_type = re.search(r'/(\d+)', raw_url['data-src']).group(), re.search(r'\b(.(jpg|jpeg|png|webp|gif|tiff|svg))\b', raw_url['data-src']).group()
|
33
33
|
url = f'https://i3.nhentai.net/galleries{img_code}/{page}{f_type}'
|
34
34
|
response = requests.get(url)
|
35
35
|
if response.status_code == 200:
|
@@ -0,0 +1,6 @@
|
|
1
|
+
nhpdf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
nhpdf/nhpdf.py,sha256=-o0ryeh69xNosrLmP8SD_MIOawLXvKb6x3vo1oFmpPw,3265
|
3
|
+
nhpdf-1.6.dist-info/METADATA,sha256=wqI6ZqBEwE6Vc2SSGehddMfwqH10JeaLObON9venzD8,2873
|
4
|
+
nhpdf-1.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
5
|
+
nhpdf-1.6.dist-info/entry_points.txt,sha256=Dn0ISURSvQrGZMCOxYEA5ocSWU5DUOiT50J7FHZk5Xs,50
|
6
|
+
nhpdf-1.6.dist-info/RECORD,,
|
nhpdf-1.5.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
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,,
|
File without changes
|
File without changes
|