Skip to content

Commit 2fdd015

Browse files
authored
Fix: improve bandwidth limit detection (#403)
1 parent 4e296d7 commit 2fdd015

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

comiccrawler/mods/exh.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ def get_images(html, url):
6060

6161
image = re.search("<img id=\"img\" src=\"(.+?)\"", html)
6262
image = unescape(image.group(1))
63-
# bandwith limit
64-
if re.search(r"509s?\.gif", image) or re.search(r"403s?\.gif", image):
63+
# bandwidth limit
64+
# https://github.com/mikf/gallery-dl/commit/8b76149521638404100dd20511ba08e67f1c1f8a
65+
if re.search(r"(hentai\.org/img|ehgt\.org/g)/(509|403)s?\.gif", image):
6566
# pause the download since retry doesn't help but increase view limit.
6667
raise PauseDownloadError("Bandwidth limit exceeded!")
6768

0 commit comments

Comments
 (0)