anilife update 2022.10.24(02.)
This commit is contained in:
@@ -743,7 +743,7 @@ class LogicAniLife(LogicModuleBase):
|
|||||||
# print(scraper.get(url, headers=LogicAniLife.headers).content)
|
# print(scraper.get(url, headers=LogicAniLife.headers).content)
|
||||||
# print(scraper.get(url).content)
|
# print(scraper.get(url).content)
|
||||||
# return scraper.get(url, headers=LogicAniLife.headers).content
|
# return scraper.get(url, headers=LogicAniLife.headers).content
|
||||||
print(LogicAniLife.headers)
|
# print(LogicAniLife.headers)
|
||||||
return sess.get(
|
return sess.get(
|
||||||
url, headers=LogicAniLife.session.headers, timeout=10, allow_redirects=True
|
url, headers=LogicAniLife.session.headers, timeout=10, allow_redirects=True
|
||||||
).content.decode("utf8", errors="replace")
|
).content.decode("utf8", errors="replace")
|
||||||
@@ -923,8 +923,8 @@ class LogicAniLife(LogicModuleBase):
|
|||||||
"최근 방영일": "_recent_date",
|
"최근 방영일": "_recent_date",
|
||||||
"개봉년도": "_release_year",
|
"개봉년도": "_release_year",
|
||||||
}
|
}
|
||||||
print(main_title)
|
# print(main_title)
|
||||||
print(image)
|
# print(image)
|
||||||
# print(des_items)
|
# print(des_items)
|
||||||
|
|
||||||
list_body_li = tree.xpath('//div[@class="eplister"]/ul/li')
|
list_body_li = tree.xpath('//div[@class="eplister"]/ul/li')
|
||||||
@@ -1047,7 +1047,7 @@ class LogicAniLife(LogicModuleBase):
|
|||||||
# logger.debug(entity["link"])
|
# logger.debug(entity["link"])
|
||||||
p = re.compile(r"^[http?s://]+[a-zA-Z0-9-]+/[a-zA-Z0-9-_.?=]+$")
|
p = re.compile(r"^[http?s://]+[a-zA-Z0-9-]+/[a-zA-Z0-9-_.?=]+$")
|
||||||
|
|
||||||
print(p.match(entity["link"]) != None)
|
# print(p.match(entity["link"]) != None)
|
||||||
if p.match(entity["link"]) is None:
|
if p.match(entity["link"]) is None:
|
||||||
entity["link"] = P.ModelSetting.get("anilife_url") + entity["link"]
|
entity["link"] = P.ModelSetting.get("anilife_url") + entity["link"]
|
||||||
# real_url = LogicAniLife.get_real_link(url=entity["link"])
|
# real_url = LogicAniLife.get_real_link(url=entity["link"])
|
||||||
@@ -1197,7 +1197,7 @@ class AniLifeQueueEntity(FfmpegQueueEntity):
|
|||||||
match = re.compile(regex).search(text)
|
match = re.compile(regex).search(text)
|
||||||
|
|
||||||
jawcloud_url = None
|
jawcloud_url = None
|
||||||
print(match)
|
# print(match)
|
||||||
if match:
|
if match:
|
||||||
jawcloud_url = match.group("jawcloud_url")
|
jawcloud_url = match.group("jawcloud_url")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user