Skip to content

Commit

Permalink
fix: patch parsing of drama synopsis
Browse files Browse the repository at this point in the history
  • Loading branch information
tbdsux committed Jun 12, 2023
1 parent 75eaf2f commit 50746ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/fetch.py
Original file line number Diff line number Diff line change
@@ -36,8 +36,8 @@ def _get_main_container(self) -> None:
self.info["poster"] = self._get_poster(container)

# SYNOPSIS
synopsis = container.find("div", class_="show-synopsis").find("span")
self.info["synopsis"] = synopsis.text.replace("\n", " ") if synopsis else ""
synopsis = container.find("div", class_="show-synopsis").find("p")
self.info["synopsis"] = synopsis.get_text().replace("Edit Translation", "").strip() if synopsis else ""

# CASTS
__casts = container.find_all("li", class_="list-item col-sm-4")

1 comment on commit 50746ed

@vercel
Copy link

@vercel vercel bot commented on 50746ed Jun 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kuryana – ./

kuryana-git-master-theboringdude.vercel.app
kuryana.vercel.app
kuryana-theboringdude.vercel.app

Please sign in to comment.