FastNovel: fix icon
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user