From eeb84d6042e061bb926b37c24135611169de3bc6 Mon Sep 17 00:00:00 2001 From: K1ngfish3r Date: Fri, 13 Oct 2023 10:52:51 +0800 Subject: [PATCH] rough fix novelpub --- src/sources/en/novelpub.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sources/en/novelpub.js b/src/sources/en/novelpub.js index fb600f6e9..59586dada 100644 --- a/src/sources/en/novelpub.js +++ b/src/sources/en/novelpub.js @@ -6,11 +6,13 @@ const baseUrl = 'https://www.novelpub.com/'; const sourceName = 'NovelPub'; const sourceId = 94; +const userAgent = + 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36'; + const headers = new Headers({ Accept: 'application/json', 'Content-Type': 'application/json', - 'User-Agent': - 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36', + 'User-Agent': userAgent, }); const popularNovels = async page => {