剧情简介:新增无码元数据站点,配置文件改为通用、有码、无码三种站点分列

This commit is contained in:
lededev
2021-10-21 20:02:07 +08:00
parent 1f9bf6b4c2
commit 850679705e
7 changed files with 92 additions and 30 deletions

View File

@@ -60,14 +60,9 @@ def get_year(lx: html.HtmlElement) -> str:
def get_outline(lx: html.HtmlElement, number: str, title: str) -> str:
o = lx.xpath("//div[@class='movie-info section']/p[@itemprop='description']/text()")[0].strip()
storyline_site = config.getInstance().storyline_site().split(',')
a = set(storyline_site) & {'airav', 'avno1'}
if len(a):
site = [n for n in storyline_site if n in a]
g = getStoryline(number, title, site)
if len(g):
return g
g = getStoryline(number, title)
if len(g):
return g
return o
def get_release(lx: html.HtmlElement) -> str: