Skip to content

Commit

Permalink
[hitomi]: fix image URLs (#1765)
Browse files Browse the repository at this point in the history
  • Loading branch information
SaidBySolo authored Aug 12, 2021
1 parent c34dbc8 commit 9429eaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/hitomi.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def images(self, _):

# 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),
Expand Down

0 comments on commit 9429eaa

Please sign in to comment.