[mangadex] unescape manga names and chapter titles

pretty sure I previously tested if unescaping strings from the
embedded JSON object was necessary ... maybe they changed it
This commit is contained in:
Mike Fährmann
2018-06-11 17:47:13 +02:00
parent 3bcce77f6d
commit 2d1a104739
4 changed files with 6 additions and 4 deletions

View File

@@ -17,5 +17,5 @@ class FourplebsThreadExtractor(chan.FoolfuukaThreadExtractor):
root = "https://archive.4plebs.org"
pattern = [r"(?:https?://)?(?:archive\.)?4plebs\.org/([^/]+)/thread/(\d+)"]
test = [("https://archive.4plebs.org/tg/thread/54059290", {
"url": "fd823f17b5001442b941fddcd9ec91bafedfbc79",
"url": "07452944164b602502b02b24521f8cee5c484d2a",
})]

View File

@@ -62,9 +62,9 @@ class MangadexChapterExtractor(MangadexExtractor, ChapterExtractor):
group = data["other_groups"][str(data["chapter_id"])]
return {
"manga": data["manga_title"],
"manga": text.unescape(data["manga_title"]),
"manga_id": data["manga_id"],
"title": data["chapter_title"],
"title": text.unescape(data["chapter_title"]),
"volume": text.parse_int(volume),
"chapter": text.parse_int(chapter),
"chapter_minor": minor or "",

View File

@@ -6,4 +6,4 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
__version__ = "1.4.0"
__version__ = "1.4.1-dev"