summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/weebcentral.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-03-01 19:51:39 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2025-03-01 19:51:39 -0500
commit889c7b8caec8fc0b9c7a583ed1d9cfa43518fc42 (patch)
treecff4a7de7032843e4efe521d92dfce485ae944f1 /gallery_dl/extractor/weebcentral.py
parenta26df18796ff4e506b16bf32fcec9336233b9e2e (diff)
New upstream version 1.29.0.upstream/1.29.0
Diffstat (limited to 'gallery_dl/extractor/weebcentral.py')
-rw-r--r--gallery_dl/extractor/weebcentral.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/gallery_dl/extractor/weebcentral.py b/gallery_dl/extractor/weebcentral.py
index fc1badb..cacefd6 100644
--- a/gallery_dl/extractor/weebcentral.py
+++ b/gallery_dl/extractor/weebcentral.py
@@ -50,14 +50,16 @@ class WeebcentralChapterExtractor(WeebcentralBase, ChapterExtractor):
def metadata(self, page):
extr = text.extract_from(page)
manga_id = extr("'series_id': '", "'")
-
- data = self._extract_manga_data(manga_id)
- data["chapter_id"] = self.groups[1]
- data["chapter_type"] = extr("'chapter_type': '", "'")
-
+ chapter_type = extr("'chapter_type': '", "'")
chapter, sep, minor = extr("'number': '", "'").partition(".")
- data["chapter"] = text.parse_int(chapter)
- data["chapter_minor"] = sep + minor
+
+ data = {
+ "chapter": text.parse_int(chapter),
+ "chapter_id": self.groups[1],
+ "chapter_type": chapter_type,
+ "chapter_minor": sep + minor,
+ }
+ data.update(self._extract_manga_data(manga_id))
return data