update scrapinglib
- 优化提取extrafanart,trailer等,直接使用xpath expr,不需要正则匹配 - 优化 getchu 获取cover方法,直接使用og标签信息 - 优化 www.getchu 识别 getchu-id 的资源 - 统一获取 tag 方法,返回值 list
This commit is contained in:
@@ -28,7 +28,7 @@ class Xcity(Parser):
|
||||
return super().getStudio(htmltree).strip('+').replace("', '", '').replace('"', '')
|
||||
|
||||
def getRuntime(self, htmltree):
|
||||
return self.getTreeAll(htmltree, self.expr_runtime)[1].strip()
|
||||
return self.getTreeElement(htmltree, self.expr_runtime, 1).strip()
|
||||
|
||||
def getRelease(self, htmltree):
|
||||
try:
|
||||
@@ -37,13 +37,6 @@ class Xcity(Parser):
|
||||
except:
|
||||
return ''
|
||||
|
||||
def getTags(self, htmltree):
|
||||
result = self.getTreeAll(htmltree, self.expr_tags)
|
||||
total = []
|
||||
for i in result:
|
||||
total.append(i.replace("\n","").replace("\t",""))
|
||||
return total
|
||||
|
||||
def getCover(self, htmltree):
|
||||
try:
|
||||
result = super().getCover(htmltree)
|
||||
|
||||
Reference in New Issue
Block a user