Merge pull request #948 from jasonpeng2014/master

bypass dmm region check not 404 event.
This commit is contained in:
Yoshiko2
2023-01-10 17:15:44 +08:00
committed by GitHub

View File

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