fixes
- 优化avsox刮削 FC2 - 修复javdb与library的specifiedUrl - 其他
This commit is contained in:
@@ -228,17 +228,28 @@ class Parser:
|
||||
def getActorPhoto(self, htmltree) -> dict:
|
||||
return {}
|
||||
|
||||
def getUncensored(self, htmlree) -> bool:
|
||||
if self.expr_uncensored:
|
||||
u = self.getTreeAll(htmlree, self.expr_uncensored)
|
||||
return bool(u)
|
||||
else:
|
||||
def getUncensored(self, htmltree) -> bool:
|
||||
"""
|
||||
tag: 無码 無修正 uncensored 无码
|
||||
title: 無碼 無修正 uncensored
|
||||
"""
|
||||
if self.uncensored:
|
||||
return self.uncensored
|
||||
tags = [x.lower() for x in self.getTags(htmltree) if len(x)]
|
||||
title = self.getTitle(htmltree)
|
||||
if self.expr_uncensored:
|
||||
u = self.getTreeAll(htmltree, self.expr_uncensored)
|
||||
self.uncensored = bool(u)
|
||||
elif '無码' in tags or '無修正' in tags or 'uncensored' in tags or '无码' in tags:
|
||||
self.uncensored = True
|
||||
elif '無码' in title or '無修正' in title or 'uncensored' in title.lower():
|
||||
self.uncensored = True
|
||||
return self.uncensored
|
||||
|
||||
def getImagecut(self, htmlree):
|
||||
def getImagecut(self, htmltree):
|
||||
""" 修正 无码poster不裁剪cover
|
||||
"""
|
||||
if self.imagecut == 1 and self.getUncensored(htmlree):
|
||||
if self.imagecut == 1 and self.getUncensored(htmltree):
|
||||
self.imagecut = 0
|
||||
return self.imagecut
|
||||
|
||||
|
||||
Reference in New Issue
Block a user