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).content)
|
||||
# return scraper.get(url, headers=LogicAniLife.headers).content
|
||||
print(LogicAniLife.headers)
|
||||
# print(LogicAniLife.headers)
|
||||
return sess.get(
|
||||
url, headers=LogicAniLife.session.headers, timeout=10, allow_redirects=True
|
||||
).content.decode("utf8", errors="replace")
|
||||
@@ -923,8 +923,8 @@ class LogicAniLife(LogicModuleBase):
|
||||
"최근 방영일": "_recent_date",
|
||||
"개봉년도": "_release_year",
|
||||
}
|
||||
print(main_title)
|
||||
print(image)
|
||||
# print(main_title)
|
||||
# print(image)
|
||||
# print(des_items)
|
||||
|
||||
list_body_li = tree.xpath('//div[@class="eplister"]/ul/li')
|
||||
@@ -1047,7 +1047,7 @@ class LogicAniLife(LogicModuleBase):
|
||||
# logger.debug(entity["link"])
|
||||
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:
|
||||
entity["link"] = P.ModelSetting.get("anilife_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)
|
||||
|
||||
jawcloud_url = None
|
||||
print(match)
|
||||
# print(match)
|
||||
if match:
|
||||
jawcloud_url = match.group("jawcloud_url")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user