Skip to content

Commit

Permalink
Get plaintext attribute of plotText
Browse files Browse the repository at this point in the history
  • Loading branch information
pmakholm authored and alphatownsman committed Jul 23, 2024
1 parent c6970cc commit ecca8d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion catalog/sites/imdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ def scrape_imdb(self):
"genre": (
[x["text"] for x in d["genres"]["genres"]] if d.get("genres") else []
),
"brief": d["plot"].get("plotText") if d.get("plot") else None,
"brief": (
d["plot"].get("plotText").get("plainText") if d.get("plot") else None
),
"cover_image_url": (
d["primaryImage"].get("url") if d.get("primaryImage") else None
),
Expand Down

0 comments on commit ecca8d7

Please sign in to comment.