Reddit: unescape title

This commit is contained in:
tobtoht 2020-12-30 08:25:47 +01:00
parent a33d241015
commit 135ff3c2e1
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -2,6 +2,7 @@
# Copyright (c) 2020, The Monero Project.
# Copyright (c) 2020, dsc@xmr.pm
import html
import settings
from fapi.utils import httpget
from fapi.tasks import FeatherTask
@ -45,7 +46,7 @@ class RedditTask(FeatherTask):
raise
blob = [{
'title': z['data']['title'],
'title': html.unescape(z['data']['title']),
'author': z['data']['author'],
'url': "https://old.reddit.com" + z['data']['permalink'], # legacy
'permalink': z['data']['permalink'],