[mangadex] prevent KeyError for manga without English title

pull/1787/head
Mike Fährmann 3 years ago
parent 20ee091289
commit ddd175de77
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -61,7 +61,8 @@ class MangadexExtractor(Extractor):
chnum, sep, minor = 0, "", ""
data = {
"manga" : mattributes["title"]["en"],
"manga" : (mattributes["title"].get("en") or
next(iter(mattributes["title"].values()))),
"manga_id": manga["data"]["id"],
"title" : cattributes["title"],
"volume" : text.parse_int(cattributes["volume"]),

Loading…
Cancel
Save