[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
pull/133/head
Mike Fährmann 6 years ago
parent 3bcce77f6d
commit 2d1a104739
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -1,5 +1,7 @@
# Changelog
## Unreleased
## 1.4.0 - 2018-06-08
- Added support for:
- `simplyhentai` - https://www.simply-hentai.com/ ([#89](https://github.com/mikf/gallery-dl/issues/89))

@ -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",
})]

@ -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 "",

@ -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"

Loading…
Cancel
Save