workaround douban incomplete page error

This commit is contained in:
Your Name 2024-11-29 10:46:35 -05:00 committed by Henri Dickson
parent a875b22b67
commit 0828d179c7

View file

@ -14,7 +14,8 @@ class DoubanDownloader(ProxiedDownloader):
return RESPONSE_CENSORSHIP
elif response.status_code == 200:
content = response.content.decode("utf-8")
if content.find("关于豆瓣") == -1:
# if content.find("关于豆瓣") == -1: # douban bug causing incomplete page sometimes
if content.find("豆瓣评分") == -1:
# if content.find('你的 IP 发出') == -1:
# error = error + 'Content not authentic' # response is garbage
# else: