main -> 2023.03.03 ohli24 버그 픽스 (.01. img xpath fix)

This commit is contained in:
2023-03-03 18:54:10 +09:00
parent f4717c74e4
commit c8284f86b7

View File

@@ -855,9 +855,15 @@ class LogicOhli24(LogicModuleBase):
entity["title"] = item.xpath(".//div[@class='post-title']/text()")[ entity["title"] = item.xpath(".//div[@class='post-title']/text()")[
0 0
].strip() ].strip()
entity["image_link"] = item.xpath(".//div[@class='img-item']/img/@src")[ # logger.debug(item.xpath(".//div[@class='img-item']/img/@src")[0])
0 # logger.debug(item.xpath(".//div[@class='img-item']/img/@data-ezsrc")[0])
].replace("..", P.ModelSetting.get("ohli24_url")) # entity["image_link"] = item.xpath(".//div[@class='img-item']/img/@src")[
# 0
# ].replace("..", P.ModelSetting.get("ohli24_url"))
entity["image_link"] = item.xpath(
".//div[@class='img-item']/img/@data-ezsrc"
)[0]
data["ret"] = "success" data["ret"] = "success"
data["anime_list"].append(entity) data["anime_list"].append(entity)