Commit 510c03f8 authored by Duhoux Pierre-Louis's avatar Duhoux Pierre-Louis

Fix Fanfox list of chapters no name

parent 3c2ed0ae
Pipeline #39344472 passed with stages
in 1 minute and 57 seconds
......@@ -6,6 +6,7 @@ if (typeof registerMangaObject === 'function') {
languages: ["sa", "bd", "bg", "ct", "cn", "hk", "cz", "dk", "nl", "gb", "ph", "fi", "fr", "de", "gr", "hu", "id", "it", "jp", "kr", "my", "mn", "ir", "pl", "br", "pt", "ro", "ru", "rs", "es", "mx", "se", "th", "tr", "ua", "vn"].join(","),
domains: ["*.mangadex.org", "mangadex.org"],
home: "https://www.mangadex.org/",
chapter_url: /\/chapter\/.*/g,
api: "https://www.mangadex.org/api/",
getMangaList: async function (search) {
......
......@@ -6,7 +6,8 @@ if (typeof registerMangaObject === 'function') {
domains: ["fanfox.net", "mangafox.me"],
languages: "en",
home: "http://fanfox.net/",
chapter_url: /\/manga\/.*\/.+\/.*/g,
getMangaList: async function (search) {
var urlManga = "http://fanfox.net/search?name=" + search;
let doc = await amr.loadPage(urlManga, { nocache: true, preventimages: true })
......@@ -41,7 +42,7 @@ if (typeof registerMangaObject === 'function') {
$(".detail-main-list a", doc).each(function () {
let url = "http://fanfox.net" + $(this).attr("href")
url = url.substr(0, url.lastIndexOf("/") + 1);
res.push([$(".title1", $(this)).text(), url]);
res.push([$(".title3", $(this)).text(), url]);
});
return res
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment