[subscribestar] unescape attachment URLs (fixes #2370)

This commit is contained in:
Mike Fährmann
2022-03-09 19:06:04 +01:00
parent 3ddc620ef6
commit d50a1ec2cc

View File

@@ -1,6 +1,6 @@
# -*- 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
# 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]),
"name": text.unescape(text.extract(
att, 'doc_preview-title">', '<')[0] or ""),
"url" : text.extract(att, 'href="', '"')[0],
"url" : text.unescape(text.extract(att, 'href="', '"')[0]),
"type": "attachment",
})