Skip to content

Commit

Permalink
fix(ehentai): 修正缩略图地址的获取逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
NekoAria committed Jan 3, 2023
1 parent 8cb5bfb commit 264b858
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions PicImageSearch/model/ehentai.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ def _arrange(self, data: PyQuery) -> None:
else:
self.url = glink.parent("a").attr("href")
thumbnail = data.find(".glthumb img")
self.thumbnail = thumbnail.attr("src")
if not self.thumbnail.startswith("http"):
self.thumbnail = thumbnail.attr("data-src")
self.thumbnail = thumbnail.attr("data-src") or thumbnail.attr("src")
self.type = data.find(".cn").eq(0).text()
self.date = data.find("[id^='posted']").eq(0).text()
self.tags = [
Expand Down

0 comments on commit 264b858

Please sign in to comment.