FastNovel: fix icon

This commit is contained in:
Rajarshee Chatterjee
2021-04-02 09:37:01 +05:30
parent a4f722ce06
commit 96f17958db
3 changed files with 3 additions and 4 deletions
-2
View File
@@ -6,8 +6,6 @@ const baseUrl = "https://fastnovel.net";
const router = express.Router();
router.get("/novels/", (req, res) => {
let novels = [];
url = `https://fastnovel.net/list/most-popular.html`;
request(url, (err, response, body) => {
+2 -1
View File
@@ -12,7 +12,6 @@ const searchUrl = "https://www.readlightnovel.org/detailed-search";
router.get("/novels/", (req, res) => {
// orderBy = req.query.o;
let novels = [];
url = `${baseUrl}/top-novel?change_type=top_rated`;
@@ -21,6 +20,8 @@ router.get("/novels/", (req, res) => {
$ = cheerio.load(body);
let novels = [];
$(".top-novel-block").each(function (result) {
novelName = $(this).find(".top-novel-header > h2 > a").text();
novelCover = $(this).find("img").attr("src");
+1 -1
View File
@@ -16,7 +16,7 @@ extensions = [
sourceId: 3,
sourceName: "FastNovel",
sourceCover:
"https://github.com/rajarsheechatterjee/lnreader-extensions/blob/main/src/en/fastnovel/icon.png",
"https://github.com/rajarsheechatterjee/lnreader-extensions/blob/main/src/en/fastnovel/icon.png?raw=true",
sourceLanguage: "English",
},
];