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:
parent
c34dbc86bb
commit
9429eaa0a3
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user