Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04306621 authored by Markus Heiser's avatar Markus Heiser
Browse files

[fix] engine google-News: fix decoding of URLs (part 2)

Follow up of 8de8070e to fix the issue reported by AlyoshaVasilieva [1].

[1] https://github.com/searxng/searxng/issues/1959#issuecomment-1493300574



Signed-off-by: default avatarMarkus Heiser <markus.heiser@darmarit.de>
parent a5155a32
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ def response(resp):
        href = href.split('?')[0]
        href = href.split('/')[-1]
        href = base64.urlsafe_b64decode(href + '====')
        href = href[4:].split(b'\xd2')[0]
        href = href[href.index(b'http') :].split(b'\xd2')[0]
        href = href.decode()

        title = extract_text(eval_xpath(result, './article/h3[1]'))