Skip to content

Commit

Permalink
Fix chireads
Browse files Browse the repository at this point in the history
  • Loading branch information
jere344 authored and ebausson committed Aug 11, 2023
1 parent 7276c5f commit 06e1e6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sources/fr/chireads.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ def read_novel_info(self):
metadata.find("div", {"class": "inform-txt-show font-color-black6"})
)

for tag in soup.find("div", {"class": "lable-list"}).find_all("a"):
self.novel_tags.append(tag.text)
tag_div = soup.find("div", {"class": "lable-list"})
if tag_div:
for tag in tag_div.find_all("a"):
self.novel_tags.append(tag.text)

self.novel_cover = self.absolute_url(metadata.find("img").get("src"))

Expand Down

0 comments on commit 06e1e6a

Please sign in to comment.