1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00

[hitomi]: fix image URLs (#1765)

This commit is contained in:
Ryu JuHeon 2021-08-12 21:39:10 +09:00 committed by GitHub
parent c34dbc86bb
commit 9429eaa0a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,7 @@ class HitomiGalleryExtractor(GalleryExtractor):
# see https://ltn.hitomi.la/common.js
inum = int(ihash[-3:-1], 16)
offset = 2 if inum < 0x40 else 1 if inum < 0x80 else 0
offset = 2 if inum < 0x44 else 1 if inum < 0x88 else 0
url = "https://{}b.hitomi.la/images/{}/{}/{}.{}".format(
chr(97 + offset),