Skip to content

Commit

Permalink
improve douban censorship detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Oct 28, 2024
1 parent 360fc7e commit 7293e6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions catalog/sites/douban.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def validate_response(self, response) -> int:
elif (
content.find("<title>页面不存在</title>") != -1
or content.find("呃... 你想访问的条目豆瓣不收录。") != -1
or content.find("根据相关法律法规,当前条目正在等待审核。") != -1
): # re.search('不存在[^<]+</title>', content, re.MULTILINE):
return RESPONSE_CENSORSHIP
else:
Expand Down

0 comments on commit 7293e6c

Please sign in to comment.