1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-26 12:42:29 +01:00

[hitomi]: fix image URLs (#1975)

This commit is contained in:
Ryu juheon 2021-10-27 02:35:01 +09:00 committed by GitHub
parent dcb201ff19
commit 6b6d92d51c
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 < 0x44 else 1 if inum < 0x88 else 0
offset = 1 if inum < 0x80 else 0
url = "https://{}b.hitomi.la/images/{}/{}/{}.{}".format(
chr(97 + offset),