manga(readcomiconline): Remove "_" from begining of chapter title

This commit is contained in:
Swakshan
2025-04-20 16:01:54 +05:30
parent 6b6ae6c8bc
commit 9b56b805c9

View File

@@ -6,7 +6,7 @@ const mangayomiSources = [{
"iconUrl": "https://www.google.com/s2/favicons?sz=256&domain=https://readcomiconline.li/",
"typeSource": "single",
"itemType": 0,
"version": "0.1.0",
"version": "0.1.1",
"pkgPath": ""
}];
@@ -135,7 +135,10 @@ class DefaultExtension extends MProvider {
var tds = item.select("td")
var aTag = tds[0].selectFirst("a")
var chapLink = aTag.getHref
var chapTitle = aTag.text.trim().replace(`${name} `, "")
chapTitle = chapTitle[0] == "_" ? chapTitle.substring(1,) : chapTitle
var uploadDate = tds[1].text.trim()
var date = new Date(uploadDate);
var dateUpload = date.getTime().toString();
@@ -145,7 +148,6 @@ class DefaultExtension extends MProvider {
})
return { name, link, imageUrl, description, genre, status, author, artist, chapters }
}