mgbuild 1.7.8 → 1.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -55538,7 +55538,8 @@ function mo_manga_getChapters($, slug) {
55538
55538
  if (!link)
55539
55539
  return;
55540
55540
  chapter.id = mo_manga_getChapterCode(link);
55541
- chapter.number = getChapterNumber(number);
55541
+ const chapterName = chapter.id.split("/").at(-1);
55542
+ chapter.number = getChapterNumber(chapterName);
55542
55543
  if (chapter.number === undefined)
55543
55544
  return;
55544
55545
  chapter.title = getChapterTitle(chapter.number);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mgbuild",
3
- "version": "1.7.8",
3
+ "version": "1.7.9",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "keywords": [],