Skip to content

Commit

Permalink
Fix synopsis when containing html chars.
Browse files Browse the repository at this point in the history
  • Loading branch information
milouk committed Oct 22, 2024
1 parent dbecca1 commit 742c402
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scraper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import base64
import hashlib
import html
import json
import os
import re
Expand Down Expand Up @@ -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

0 comments on commit 742c402

Please sign in to comment.