[subscribestar] unescape attachment URLs (fixes #2370)

pull/2396/head
Mike Fährmann 3 years ago
parent 3ddc620ef6
commit d50a1ec2cc
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright 2020-2021 Mike Fährmann # Copyright 2020-2022 Mike Fährmann
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as # it under the terms of the GNU General Public License version 2 as
@ -105,7 +105,7 @@ class SubscribestarExtractor(Extractor):
att, 'data-upload-id="', '"')[0]), att, 'data-upload-id="', '"')[0]),
"name": text.unescape(text.extract( "name": text.unescape(text.extract(
att, 'doc_preview-title">', '<')[0] or ""), att, 'doc_preview-title">', '<')[0] or ""),
"url" : text.extract(att, 'href="', '"')[0], "url" : text.unescape(text.extract(att, 'href="', '"')[0]),
"type": "attachment", "type": "attachment",
}) })

Loading…
Cancel
Save