nhpdf 1.5__tar.gz → 1.6__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.5
3
+ Version: 1.6
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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "nhpdf"
7
- version = "1.5"
7
+ version = "1.6"
8
8
  dependencies = [
9
9
  "beautifulsoup4",
10
10
  "img2pdf",
@@ -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:
File without changes
File without changes
File without changes
File without changes
File without changes