From 742c402c9843b9b2a8b735d29ab81d82a35ad562 Mon Sep 17 00:00:00 2001 From: Michael Loukeris Date: Tue, 22 Oct 2024 13:41:18 +0300 Subject: [PATCH] Fix synopsis when containing html chars. --- src/scraper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scraper.py b/src/scraper.py index c3fd671..8874091 100644 --- a/src/scraper.py +++ b/src/scraper.py @@ -1,5 +1,6 @@ import base64 import hashlib +import html import json import os import re @@ -230,5 +231,5 @@ def fetch_synopsis(game, config): (item["text"] for item in synopsis if item["langue"] == synopsis_lang), None ) if synopsis_text: - return synopsis_text + return html.unescape(synopsis_text) return None