Fix: Chapter numbers should be floats.

master
masterhc 12 months ago
parent 5d3fccd485
commit fe2ca8ab10

@ -111,7 +111,7 @@ module.exports = class AsuraModule
* @param {Link} link Manga url (
* @returns {Array<Chapter>} - Chapters Array
* @typedef {Object} Chapter
* @property {Number} num - Chapter Number
* @property {Number} num - Chapter Number (Float)
* @property {String} link - Chapter Link
* @property {String} date - Chapter Release Date
* @typedef {String} Link
@ -142,7 +142,7 @@ module.exports = class AsuraModule
for(var chapter of chapters)
{
var aux = {
num:parseInt(chapter.rawAttrs.split('"')[1]),
num:parseFloat(chapter.rawAttrs.split('"')[1]),
link:chapter.querySelector('.eph-num').innerHTML.split('"')[1],
date:chapter.querySelector('.chapterdate').innerText

@ -144,7 +144,7 @@ module.exports = class ReaperModule
for(var chapter of chapters)
{
var aux = {
num:parseInt(chapter.rawAttrs.split('"')[1]),
num:parseFloat(chapter.rawAttrs.split('"')[1]),
link:chapter.childNodes[0].childNodes[0].childNodes[1].rawAttrs.split('"')[1],
date:chapter.childNodes[0].childNodes[0].childNodes[1].childNodes[3].rawText,

Loading…
Cancel
Save