[exhentai] add 'gp' option (#4576)

This commit is contained in:
Mike Fährmann
2023-11-22 20:15:00 +01:00
parent cb9a1176e6
commit b43be67206
2 changed files with 21 additions and 0 deletions

View File

@@ -175,6 +175,13 @@ class ExhentaiGalleryExtractor(ExhentaiExtractor):
self.log.warning("'%s'", page)
if " requires GP" in page:
gp = self.config("gp")
if gp == "stop":
raise exception.StopExtraction("Not enough GP")
elif gp == "wait":
input("Press ENTER to continue.")
return response.url
self.log.info("Falling back to non-original downloads")
self.original = False
return data["_url_1280"]