From: BenoƮt Fontaine Date: Tue, 5 Nov 2019 20:58:09 +0000 (+0100) Subject: Fix : unquote url-like Fact value X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=f5d2e82103744a8cb0c64d1040e7dfbb17a4b9d7;p=gamesguru%2Fgetmyancestors.git Fix : unquote url-like Fact value --- diff --git a/getmyancestors.py b/getmyancestors.py index ff9b5a3..8bbc3cd 100755 --- a/getmyancestors.py +++ b/getmyancestors.py @@ -26,6 +26,7 @@ from __future__ import print_function import re import sys import time +from urllib.parse import unquote import getpass import asyncio import argparse @@ -369,7 +370,7 @@ class Fact: if self.type in FACT_EVEN: self.type = tree.fs._(FACT_EVEN[self.type]) elif self.type[:6] == "data:,": - self.type = self.type[6:] + self.type = unquote(self.type[6:]) elif self.type not in FACT_TAGS: self.type = None if "date" in data: