update scrapinglib
- 优化提取extrafanart,trailer等,直接使用xpath expr,不需要正则匹配 - 优化 getchu 获取cover方法,直接使用og标签信息 - 优化 www.getchu 识别 getchu-id 的资源 - 统一获取 tag 方法,返回值 list
This commit is contained in:
@@ -53,7 +53,7 @@ class Avsox(Parser):
|
||||
return self.getTreeElement(self.searchtree, self.expr_smallcover)
|
||||
|
||||
def getTags(self, htmltree):
|
||||
tags = super().getTags(htmltree).split(',')
|
||||
tags = self.getTreeElement(htmltree).split(',')
|
||||
return [i.strip() for i in tags[2:]] if len(tags) > 2 else []
|
||||
|
||||
def getOutline(self, htmltree):
|
||||
@@ -70,7 +70,7 @@ class Avsox(Parser):
|
||||
return d
|
||||
|
||||
def getActorPhoto(self, htmltree):
|
||||
a = super().getActorPhoto(htmltree)
|
||||
a = self.getTreeAll(htmltree, self.expr_actorphoto)
|
||||
d = {}
|
||||
for i in a:
|
||||
l = i.find('.//img').attrib['src']
|
||||
|
||||
Reference in New Issue
Block a user