bypass dmm region check not 404 event.

This commit is contained in:
Jason-YS Peng
2023-01-02 15:56:29 +08:00
parent 91371e8eb6
commit b3e1448db6

View File

@@ -49,6 +49,8 @@ class Fanza(Parser):
self.detailurl = url + fanza_search_number self.detailurl = url + fanza_search_number
url = "https://www.dmm.co.jp/age_check/=/declared=yes/?"+ urlencode({"rurl": self.detailurl}) url = "https://www.dmm.co.jp/age_check/=/declared=yes/?"+ urlencode({"rurl": self.detailurl})
self.htmlcode = self.getHtml(url) self.htmlcode = self.getHtml(url)
if "Sorry! This content is not available in your region." in self.htmlcode:
continue
if self.htmlcode != 404: if self.htmlcode != 404:
self.htmltree = etree.HTML(self.htmlcode) self.htmltree = etree.HTML(self.htmlcode)
break break