remove this.cookieString attribute
This commit is contained in:
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ var WPmangaStreamPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
}
|
}
|
||||||
WPmangaStreamPlugin.prototype.popularNovels = function (page) {
|
WPmangaStreamPlugin.prototype.popularNovels = function (page) {
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ var KolNovel = /** @class */ (function () {
|
|||||||
this.site = "https://kolnovel.lol/";
|
this.site = "https://kolnovel.lol/";
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.filters = {
|
this.filters = {
|
||||||
order: {
|
order: {
|
||||||
label: "ترتيب حسب",
|
label: "ترتيب حسب",
|
||||||
@@ -148,9 +147,6 @@ var KolNovel = /** @class */ (function () {
|
|||||||
link += "&status=" + ((filters === null || filters === void 0 ? void 0 : filters.status) ? filters.status : "");
|
link += "&status=" + ((filters === null || filters === void 0 ? void 0 : filters.status) ? filters.status : "");
|
||||||
link += "&order=" + ((filters === null || filters === void 0 ? void 0 : filters.order) ? filters.order : "popular");
|
link += "&order=" + ((filters === null || filters === void 0 ? void 0 : filters.order) ? filters.order : "popular");
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
|
||||||
return result.text();
|
return result.text();
|
||||||
})];
|
})];
|
||||||
@@ -185,9 +181,6 @@ var KolNovel = /** @class */ (function () {
|
|||||||
case 0:
|
case 0:
|
||||||
url = novelUrl;
|
url = novelUrl;
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, fetch(url, { headers: headers })];
|
return [4 /*yield*/, fetch(url, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _a.sent();
|
result = _a.sent();
|
||||||
@@ -258,9 +251,6 @@ var KolNovel = /** @class */ (function () {
|
|||||||
switch (_b.label) {
|
switch (_b.label) {
|
||||||
case 0:
|
case 0:
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, fetch(chapterUrl, { headers: headers })];
|
return [4 /*yield*/, fetch(chapterUrl, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _b.sent();
|
result = _b.sent();
|
||||||
@@ -286,9 +276,6 @@ var KolNovel = /** @class */ (function () {
|
|||||||
case 0:
|
case 0:
|
||||||
url = "".concat(this.site, "?s=").concat(searchTerm);
|
url = "".concat(this.site, "?s=").concat(searchTerm);
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _a.sent();
|
result = _a.sent();
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ var Linovelib = /** @class */ (function () {
|
|||||||
this.site = "https://w.linovelib.com";
|
this.site = "https://w.linovelib.com";
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.filters = {
|
this.filters = {
|
||||||
sort: {
|
sort: {
|
||||||
label: "Sort By",
|
label: "Sort By",
|
||||||
@@ -83,9 +82,6 @@ var Linovelib = /** @class */ (function () {
|
|||||||
link += filters.sort;
|
link += filters.sort;
|
||||||
link += "/".concat(pageNo, ".html");
|
link += "/".concat(pageNo, ".html");
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
|
||||||
return result.text();
|
return result.text();
|
||||||
})];
|
})];
|
||||||
@@ -124,9 +120,6 @@ var Linovelib = /** @class */ (function () {
|
|||||||
case 0:
|
case 0:
|
||||||
url = novelUrl;
|
url = novelUrl;
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _b.sent();
|
result = _b.sent();
|
||||||
@@ -206,9 +199,6 @@ var Linovelib = /** @class */ (function () {
|
|||||||
switch (_a.label) {
|
switch (_a.label) {
|
||||||
case 0:
|
case 0:
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
chapterText = "", pageText = "";
|
chapterText = "", pageText = "";
|
||||||
pageNumber = 1;
|
pageNumber = 1;
|
||||||
skillgg = {
|
skillgg = {
|
||||||
@@ -416,9 +406,6 @@ var Linovelib = /** @class */ (function () {
|
|||||||
searchUrl = "".concat(this.site, "/search/");
|
searchUrl = "".concat(this.site, "/search/");
|
||||||
Term = encodeURI(searchTerm);
|
Term = encodeURI(searchTerm);
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
pageNo = 1;
|
pageNo = 1;
|
||||||
novels = [];
|
novels = [];
|
||||||
addPage = function (pageCheerio, redirect) { return __awaiter(_this, void 0, void 0, function () {
|
addPage = function (pageCheerio, redirect) { return __awaiter(_this, void 0, void 0, function () {
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ var ReadwnPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
ReadwnPlugin.prototype.popularNovels = function (pageNo, _a) {
|
ReadwnPlugin.prototype.popularNovels = function (pageNo, _a) {
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ var ReadwnPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
ReadwnPlugin.prototype.popularNovels = function (pageNo, _a) {
|
ReadwnPlugin.prototype.popularNovels = function (pageNo, _a) {
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ var ReadwnPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
ReadwnPlugin.prototype.popularNovels = function (pageNo, _a) {
|
ReadwnPlugin.prototype.popularNovels = function (pageNo, _a) {
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ var BLN = /** @class */ (function () {
|
|||||||
this.site = "https://bestlightnovel.com/";
|
this.site = "https://bestlightnovel.com/";
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
}
|
}
|
||||||
BLN.prototype.popularNovels = function (pageNo, options) {
|
BLN.prototype.popularNovels = function (pageNo, options) {
|
||||||
return __awaiter(this, void 0, void 0, function () {
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ var FTest = /** @class */ (function () {
|
|||||||
this.site = "https://noblemtl.com/";
|
this.site = "https://noblemtl.com/";
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.filters = {
|
this.filters = {
|
||||||
picker: {
|
picker: {
|
||||||
type: filterInputs_1.FilterTypes.Picker,
|
type: filterInputs_1.FilterTypes.Picker,
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ var FreeWebNovel = /** @class */ (function () {
|
|||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.icon = "src/en/freewebnovel/icon.png";
|
this.icon = "src/en/freewebnovel/icon.png";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.fetchImage = fetch_1.fetchFile;
|
this.fetchImage = fetch_1.fetchFile;
|
||||||
}
|
}
|
||||||
FreeWebNovel.prototype.popularNovels = function (page, _a) {
|
FreeWebNovel.prototype.popularNovels = function (page, _a) {
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ var NobleMTL = /** @class */ (function () {
|
|||||||
this.site = "https://noblemtl.com/";
|
this.site = "https://noblemtl.com/";
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.filters = {
|
this.filters = {
|
||||||
order: {
|
order: {
|
||||||
label: "Sort By",
|
label: "Sort By",
|
||||||
@@ -196,9 +195,6 @@ var NobleMTL = /** @class */ (function () {
|
|||||||
link += "&status=" + filters.status.value;
|
link += "&status=" + filters.status.value;
|
||||||
link += "&order=" + filters.order.value;
|
link += "&order=" + filters.order.value;
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
|
||||||
return result.text();
|
return result.text();
|
||||||
})];
|
})];
|
||||||
@@ -233,9 +229,6 @@ var NobleMTL = /** @class */ (function () {
|
|||||||
case 0:
|
case 0:
|
||||||
url = novelUrl;
|
url = novelUrl;
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _a.sent();
|
result = _a.sent();
|
||||||
@@ -311,9 +304,6 @@ var NobleMTL = /** @class */ (function () {
|
|||||||
switch (_a.label) {
|
switch (_a.label) {
|
||||||
case 0:
|
case 0:
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _a.sent();
|
result = _a.sent();
|
||||||
@@ -335,9 +325,6 @@ var NobleMTL = /** @class */ (function () {
|
|||||||
case 0:
|
case 0:
|
||||||
url = "".concat(this.site, "?s=").concat(searchTerm);
|
url = "".concat(this.site, "?s=").concat(searchTerm);
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _a.sent();
|
result = _a.sent();
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ var PandaMTL = /** @class */ (function () {
|
|||||||
this.site = "https://pandamtl.com/";
|
this.site = "https://pandamtl.com/";
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.filters = {
|
this.filters = {
|
||||||
order: {
|
order: {
|
||||||
label: "Sort By",
|
label: "Sort By",
|
||||||
@@ -126,9 +125,6 @@ var PandaMTL = /** @class */ (function () {
|
|||||||
link += "&status=" + ((filters === null || filters === void 0 ? void 0 : filters.status) ? filters.status : "");
|
link += "&status=" + ((filters === null || filters === void 0 ? void 0 : filters.status) ? filters.status : "");
|
||||||
link += "&order=" + ((filters === null || filters === void 0 ? void 0 : filters.order) ? filters.order : "popular");
|
link += "&order=" + ((filters === null || filters === void 0 ? void 0 : filters.order) ? filters.order : "popular");
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
|
||||||
return result.text();
|
return result.text();
|
||||||
})];
|
})];
|
||||||
@@ -163,9 +159,6 @@ var PandaMTL = /** @class */ (function () {
|
|||||||
case 0:
|
case 0:
|
||||||
url = novelUrl;
|
url = novelUrl;
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _a.sent();
|
result = _a.sent();
|
||||||
@@ -234,9 +227,6 @@ var PandaMTL = /** @class */ (function () {
|
|||||||
switch (_a.label) {
|
switch (_a.label) {
|
||||||
case 0:
|
case 0:
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _a.sent();
|
result = _a.sent();
|
||||||
@@ -258,9 +248,6 @@ var PandaMTL = /** @class */ (function () {
|
|||||||
case 0:
|
case 0:
|
||||||
url = "".concat(this.site, "?s=").concat(searchTerm);
|
url = "".concat(this.site, "?s=").concat(searchTerm);
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _a.sent();
|
result = _a.sent();
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ var WPmangaStreamPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
}
|
}
|
||||||
WPmangaStreamPlugin.prototype.popularNovels = function (page) {
|
WPmangaStreamPlugin.prototype.popularNovels = function (page) {
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ var ChireadsPlugin = /** @class */ (function () {
|
|||||||
this.site = "https://chireads.com";
|
this.site = "https://chireads.com";
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36";
|
this.userAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36";
|
||||||
this.cookieString = "''";
|
|
||||||
}
|
}
|
||||||
ChireadsPlugin.prototype.parseNovels = function (loadedCheerio) {
|
ChireadsPlugin.prototype.parseNovels = function (loadedCheerio) {
|
||||||
return [];
|
return [];
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ var NovelDeGlacePlugin = /** @class */ (function () {
|
|||||||
this.site = "https://noveldeglace.com/";
|
this.site = "https://noveldeglace.com/";
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "''";
|
this.userAgent = "''";
|
||||||
this.cookieString = "''";
|
|
||||||
}
|
}
|
||||||
NovelDeGlacePlugin.prototype.popularNovels = function (page) {
|
NovelDeGlacePlugin.prototype.popularNovels = function (page) {
|
||||||
return __awaiter(this, void 0, void 0, function () {
|
return __awaiter(this, void 0, void 0, function () {
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ var LightNovelBrasil = /** @class */ (function () {
|
|||||||
this.site = "https://lightnovelbrasil.com/";
|
this.site = "https://lightnovelbrasil.com/";
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.filters = {
|
this.filters = {
|
||||||
order: {
|
order: {
|
||||||
label: "Sort By",
|
label: "Sort By",
|
||||||
@@ -196,9 +195,6 @@ var LightNovelBrasil = /** @class */ (function () {
|
|||||||
link += "&status=" + ((filters === null || filters === void 0 ? void 0 : filters.status) ? filters.status : "");
|
link += "&status=" + ((filters === null || filters === void 0 ? void 0 : filters.status) ? filters.status : "");
|
||||||
link += "&order=" + ((filters === null || filters === void 0 ? void 0 : filters.order) ? filters.order : "popular");
|
link += "&order=" + ((filters === null || filters === void 0 ? void 0 : filters.order) ? filters.order : "popular");
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
|
||||||
return result.text();
|
return result.text();
|
||||||
})];
|
})];
|
||||||
@@ -233,9 +229,6 @@ var LightNovelBrasil = /** @class */ (function () {
|
|||||||
case 0:
|
case 0:
|
||||||
url = novelUrl;
|
url = novelUrl;
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _a.sent();
|
result = _a.sent();
|
||||||
@@ -312,9 +305,6 @@ var LightNovelBrasil = /** @class */ (function () {
|
|||||||
switch (_a.label) {
|
switch (_a.label) {
|
||||||
case 0:
|
case 0:
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _a.sent();
|
result = _a.sent();
|
||||||
@@ -336,9 +326,6 @@ var LightNovelBrasil = /** @class */ (function () {
|
|||||||
case 0:
|
case 0:
|
||||||
url = "".concat(this.site, "?s=").concat(searchTerm);
|
url = "".concat(this.site, "?s=").concat(searchTerm);
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _a.sent();
|
result = _a.sent();
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ var IfreedomPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
IfreedomPlugin.prototype.popularNovels = function (page, _a) {
|
IfreedomPlugin.prototype.popularNovels = function (page, _a) {
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ var RulatePlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
RulatePlugin.prototype.popularNovels = function (pageNo, _a) {
|
RulatePlugin.prototype.popularNovels = function (pageNo, _a) {
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ var freedlit = /** @class */ (function () {
|
|||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.icon = "src/ru/freedlit/icon.png";
|
this.icon = "src/ru/freedlit/icon.png";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.fetchImage = fetch_1.fetchFile;
|
this.fetchImage = fetch_1.fetchFile;
|
||||||
this.filters = {
|
this.filters = {
|
||||||
sort: {
|
sort: {
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ var RulatePlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
RulatePlugin.prototype.popularNovels = function (pageNo, _a) {
|
RulatePlugin.prototype.popularNovels = function (pageNo, _a) {
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ var AuthorToday = /** @class */ (function () {
|
|||||||
this.site = "https://author.today";
|
this.site = "https://author.today";
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.fetchImage = fetch_1.fetchFile;
|
this.fetchImage = fetch_1.fetchFile;
|
||||||
this.filters = {
|
this.filters = {
|
||||||
sort: {
|
sort: {
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ var Bookriver = /** @class */ (function () {
|
|||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.icon = "src/ru/bookriver/icon.png";
|
this.icon = "src/ru/bookriver/icon.png";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.fetchImage = fetch_1.fetchFile;
|
this.fetchImage = fetch_1.fetchFile;
|
||||||
this.filters = {
|
this.filters = {
|
||||||
sort: {
|
sort: {
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ var ficbook = /** @class */ (function () {
|
|||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.icon = "src/ru/ficbook/icon.png";
|
this.icon = "src/ru/ficbook/icon.png";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.fetchImage = fetch_1.fetchFile;
|
this.fetchImage = fetch_1.fetchFile;
|
||||||
this.filters = {
|
this.filters = {
|
||||||
sort: {
|
sort: {
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ var Jaomix = /** @class */ (function () {
|
|||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.icon = "src/ru/jaomix/icon.png";
|
this.icon = "src/ru/jaomix/icon.png";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.fetchImage = fetch_1.fetchFile;
|
this.fetchImage = fetch_1.fetchFile;
|
||||||
this.filters = {
|
this.filters = {
|
||||||
sortby: {
|
sortby: {
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ var TL = /** @class */ (function () {
|
|||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.icon = "src/ru/noveltl/icon.png";
|
this.icon = "src/ru/noveltl/icon.png";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.fetchImage = fetch_1.fetchFile;
|
this.fetchImage = fetch_1.fetchFile;
|
||||||
this.filters = {
|
this.filters = {
|
||||||
tags: {
|
tags: {
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ var RNBH = /** @class */ (function () {
|
|||||||
this.site = "https://ranobehub.org/";
|
this.site = "https://ranobehub.org/";
|
||||||
this.icon = "src/ru/ranobehub/icon.png";
|
this.icon = "src/ru/ranobehub/icon.png";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.fetchImage = fetch_1.fetchFile;
|
this.fetchImage = fetch_1.fetchFile;
|
||||||
this.filters = {
|
this.filters = {
|
||||||
sort: {
|
sort: {
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ var RLIB = /** @class */ (function () {
|
|||||||
this.icon = "src/ru/ranobelib/icon.png";
|
this.icon = "src/ru/ranobelib/icon.png";
|
||||||
this.ui = undefined;
|
this.ui = undefined;
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.fetchImage = fetch_1.fetchFile;
|
this.fetchImage = fetch_1.fetchFile;
|
||||||
this.filters = {
|
this.filters = {
|
||||||
sort: {
|
sort: {
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ var RNRF = /** @class */ (function () {
|
|||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.icon = "src/ru/ranoberf/icon.png";
|
this.icon = "src/ru/ranoberf/icon.png";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.fetchImage = fetch_1.fetchFile;
|
this.fetchImage = fetch_1.fetchFile;
|
||||||
this.filters = {
|
this.filters = {
|
||||||
sort: {
|
sort: {
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ var ReN = /** @class */ (function () {
|
|||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.icon = "src/ru/renovels/icon.png";
|
this.icon = "src/ru/renovels/icon.png";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.fetchImage = fetch_1.fetchFile;
|
this.fetchImage = fetch_1.fetchFile;
|
||||||
this.filters = {
|
this.filters = {
|
||||||
sort: {
|
sort: {
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ var IfreedomPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
IfreedomPlugin.prototype.popularNovels = function (page, _a) {
|
IfreedomPlugin.prototype.popularNovels = function (page, _a) {
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ var TuNovelaLigera = /** @class */ (function () {
|
|||||||
this.site = "https://tunovelaligera.com/";
|
this.site = "https://tunovelaligera.com/";
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.filters = {
|
this.filters = {
|
||||||
order: {
|
order: {
|
||||||
value: "?m_orderby=rating",
|
value: "?m_orderby=rating",
|
||||||
@@ -137,9 +136,6 @@ var TuNovelaLigera = /** @class */ (function () {
|
|||||||
link += "/page/".concat(pageNo);
|
link += "/page/".concat(pageNo);
|
||||||
link += filters.order;
|
link += filters.order;
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers })];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _b.sent();
|
result = _b.sent();
|
||||||
@@ -175,9 +171,6 @@ var TuNovelaLigera = /** @class */ (function () {
|
|||||||
case 0:
|
case 0:
|
||||||
url = novelUrl;
|
url = novelUrl;
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _c.sent();
|
result = _c.sent();
|
||||||
@@ -353,9 +346,6 @@ var TuNovelaLigera = /** @class */ (function () {
|
|||||||
switch (_a.label) {
|
switch (_a.label) {
|
||||||
case 0:
|
case 0:
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl)];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl)];
|
||||||
case 1:
|
case 1:
|
||||||
result = _a.sent();
|
result = _a.sent();
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
|||||||
this.site = metadata.sourceSite;
|
this.site = metadata.sourceSite;
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.options = metadata.options;
|
this.options = metadata.options;
|
||||||
this.filters = metadata.filters;
|
this.filters = metadata.filters;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ var LSHNovel = /** @class */ (function () {
|
|||||||
this.site = "https://lshnovel.com/";
|
this.site = "https://lshnovel.com/";
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.filters = {
|
this.filters = {
|
||||||
order: {
|
order: {
|
||||||
value: "popular",
|
value: "popular",
|
||||||
@@ -144,9 +143,6 @@ var LSHNovel = /** @class */ (function () {
|
|||||||
link += "&status=" + filters.status;
|
link += "&status=" + filters.status;
|
||||||
link += "&order=" + filters.order;
|
link += "&order=" + filters.order;
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers }).then(function (result) {
|
||||||
return result.text();
|
return result.text();
|
||||||
})];
|
})];
|
||||||
@@ -181,9 +177,6 @@ var LSHNovel = /** @class */ (function () {
|
|||||||
case 0:
|
case 0:
|
||||||
url = novelUrl;
|
url = novelUrl;
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _a.sent();
|
result = _a.sent();
|
||||||
@@ -259,9 +252,6 @@ var LSHNovel = /** @class */ (function () {
|
|||||||
switch (_a.label) {
|
switch (_a.label) {
|
||||||
case 0:
|
case 0:
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _a.sent();
|
result = _a.sent();
|
||||||
@@ -283,9 +273,6 @@ var LSHNovel = /** @class */ (function () {
|
|||||||
case 0:
|
case 0:
|
||||||
url = "".concat(this.site, "?s=").concat(searchTerm);
|
url = "".concat(this.site, "?s=").concat(searchTerm);
|
||||||
headers = new Headers();
|
headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||||
case 1:
|
case 1:
|
||||||
result = _a.sent();
|
result = _a.sent();
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ var Smakolykytl = /** @class */ (function () {
|
|||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.icon = "src/ua/smakolykytl/icon.png";
|
this.icon = "src/ua/smakolykytl/icon.png";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
this.fetchImage = fetch_1.fetchFile;
|
this.fetchImage = fetch_1.fetchFile;
|
||||||
}
|
}
|
||||||
Smakolykytl.prototype.popularNovels = function (pageNo, _a) {
|
Smakolykytl.prototype.popularNovels = function (pageNo, _a) {
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ var HakoPlugin = /** @class */ (function () {
|
|||||||
this.site = "https://ln.hako.vn";
|
this.site = "https://ln.hako.vn";
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
}
|
}
|
||||||
HakoPlugin.prototype.parseNovels = function (loadedCheerio) {
|
HakoPlugin.prototype.parseNovels = function (loadedCheerio) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ class KolNovel implements Plugin.PluginBase {
|
|||||||
site = "https://kolnovel.lol/";
|
site = "https://kolnovel.lol/";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>
|
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>
|
||||||
@@ -26,9 +25,6 @@ class KolNovel implements Plugin.PluginBase {
|
|||||||
|
|
||||||
link += "&order=" + (filters?.order ? filters.order : "popular");
|
link += "&order=" + (filters?.order ? filters.order : "popular");
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const body = await fetchApi(link, { headers }).then((result) =>
|
const body = await fetchApi(link, { headers }).then((result) =>
|
||||||
result.text()
|
result.text()
|
||||||
);
|
);
|
||||||
@@ -59,9 +55,6 @@ class KolNovel implements Plugin.PluginBase {
|
|||||||
async parseNovelAndChapters(novelUrl: string): Promise<Plugin.SourceNovel> {
|
async parseNovelAndChapters(novelUrl: string): Promise<Plugin.SourceNovel> {
|
||||||
const url = novelUrl;
|
const url = novelUrl;
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetch(url, { headers });
|
const result = await fetch(url, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
@@ -136,9 +129,6 @@ class KolNovel implements Plugin.PluginBase {
|
|||||||
}
|
}
|
||||||
async parseChapter(chapterUrl: string): Promise<string> {
|
async parseChapter(chapterUrl: string): Promise<string> {
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetch(chapterUrl, { headers });
|
const result = await fetch(chapterUrl, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
@@ -159,9 +149,6 @@ class KolNovel implements Plugin.PluginBase {
|
|||||||
): Promise<Plugin.NovelItem[]> {
|
): Promise<Plugin.NovelItem[]> {
|
||||||
const url = `${this.site}?s=${searchTerm}`;
|
const url = `${this.site}?s=${searchTerm}`;
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(url, { headers });
|
const result = await fetchApi(url, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ class Linovelib implements Plugin.PluginBase {
|
|||||||
site = "https://w.linovelib.com";
|
site = "https://w.linovelib.com";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>
|
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>
|
||||||
@@ -23,9 +22,6 @@ class Linovelib implements Plugin.PluginBase {
|
|||||||
link += `/${pageNo}.html`;
|
link += `/${pageNo}.html`;
|
||||||
|
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const body = await fetchApi(link, { headers }).then((result) =>
|
const body = await fetchApi(link, { headers }).then((result) =>
|
||||||
result.text()
|
result.text()
|
||||||
);
|
);
|
||||||
@@ -60,9 +56,6 @@ class Linovelib implements Plugin.PluginBase {
|
|||||||
async parseNovelAndChapters(novelUrl: string): Promise<Plugin.SourceNovel> {
|
async parseNovelAndChapters(novelUrl: string): Promise<Plugin.SourceNovel> {
|
||||||
const url = novelUrl;
|
const url = novelUrl;
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(url, { headers });
|
const result = await fetchApi(url, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
@@ -151,9 +144,6 @@ class Linovelib implements Plugin.PluginBase {
|
|||||||
|
|
||||||
async parseChapter(chapterUrl: string): Promise<string> {
|
async parseChapter(chapterUrl: string): Promise<string> {
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
let chapterName,
|
let chapterName,
|
||||||
chapterText = "",
|
chapterText = "",
|
||||||
hasNextPage,
|
hasNextPage,
|
||||||
@@ -461,9 +451,6 @@ class Linovelib implements Plugin.PluginBase {
|
|||||||
const searchUrl = `${this.site}/search/`;
|
const searchUrl = `${this.site}/search/`;
|
||||||
const Term = encodeURI(searchTerm);
|
const Term = encodeURI(searchTerm);
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
let NextPage, NoNextPage: boolean, DeadEnd;
|
let NextPage, NoNextPage: boolean, DeadEnd;
|
||||||
pageNo = 1;
|
pageNo = 1;
|
||||||
const novels: Plugin.NovelItem[] = [];
|
const novels: Plugin.NovelItem[] = [];
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ class BLN implements Plugin.PluginBase {
|
|||||||
filter?: undefined;
|
filter?: undefined;
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
options: Plugin.PopularNovelsOptions
|
options: Plugin.PopularNovelsOptions
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ class FTest implements Plugin.PluginBase {
|
|||||||
site = "https://noblemtl.com/";
|
site = "https://noblemtl.com/";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>
|
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ class FreeWebNovel implements Plugin.PluginBase {
|
|||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
icon = "src/en/freewebnovel/icon.png";
|
icon = "src/en/freewebnovel/icon.png";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
page: number,
|
page: number,
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ class NobleMTL implements Plugin.PluginBase {
|
|||||||
site = "https://noblemtl.com/";
|
site = "https://noblemtl.com/";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>
|
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>
|
||||||
@@ -28,9 +27,6 @@ class NobleMTL implements Plugin.PluginBase {
|
|||||||
link += "&order=" + filters.order.value;
|
link += "&order=" + filters.order.value;
|
||||||
|
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const body = await fetchApi(link, { headers }).then((result) =>
|
const body = await fetchApi(link, { headers }).then((result) =>
|
||||||
result.text()
|
result.text()
|
||||||
);
|
);
|
||||||
@@ -63,9 +59,6 @@ class NobleMTL implements Plugin.PluginBase {
|
|||||||
async parseNovelAndChapters(novelUrl: string): Promise<Plugin.SourceNovel> {
|
async parseNovelAndChapters(novelUrl: string): Promise<Plugin.SourceNovel> {
|
||||||
const url = novelUrl;
|
const url = novelUrl;
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(url, { headers });
|
const result = await fetchApi(url, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
@@ -145,9 +138,6 @@ class NobleMTL implements Plugin.PluginBase {
|
|||||||
}
|
}
|
||||||
async parseChapter(chapterUrl: string): Promise<string> {
|
async parseChapter(chapterUrl: string): Promise<string> {
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(chapterUrl, { headers });
|
const result = await fetchApi(chapterUrl, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
@@ -164,9 +154,6 @@ class NobleMTL implements Plugin.PluginBase {
|
|||||||
): Promise<Plugin.NovelItem[]> {
|
): Promise<Plugin.NovelItem[]> {
|
||||||
const url = `${this.site}?s=${searchTerm}`;
|
const url = `${this.site}?s=${searchTerm}`;
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(url, { headers });
|
const result = await fetchApi(url, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ class PandaMTL implements Plugin.PluginBase {
|
|||||||
site = "https://pandamtl.com/";
|
site = "https://pandamtl.com/";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>
|
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>
|
||||||
@@ -29,9 +28,6 @@ class PandaMTL implements Plugin.PluginBase {
|
|||||||
link += "&order=" + (filters?.order ? filters.order : "popular");
|
link += "&order=" + (filters?.order ? filters.order : "popular");
|
||||||
|
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const body = await fetchApi(link, { headers }).then((result) =>
|
const body = await fetchApi(link, { headers }).then((result) =>
|
||||||
result.text()
|
result.text()
|
||||||
);
|
);
|
||||||
@@ -62,9 +58,6 @@ class PandaMTL implements Plugin.PluginBase {
|
|||||||
async parseNovelAndChapters(novelUrl: string): Promise<Plugin.SourceNovel> {
|
async parseNovelAndChapters(novelUrl: string): Promise<Plugin.SourceNovel> {
|
||||||
const url = novelUrl;
|
const url = novelUrl;
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(url, { headers });
|
const result = await fetchApi(url, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
@@ -138,9 +131,6 @@ class PandaMTL implements Plugin.PluginBase {
|
|||||||
}
|
}
|
||||||
async parseChapter(chapterUrl: string): Promise<string> {
|
async parseChapter(chapterUrl: string): Promise<string> {
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(chapterUrl, { headers });
|
const result = await fetchApi(chapterUrl, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
@@ -156,9 +146,6 @@ class PandaMTL implements Plugin.PluginBase {
|
|||||||
): Promise<Plugin.NovelItem[]> {
|
): Promise<Plugin.NovelItem[]> {
|
||||||
const url = `${this.site}?s=${searchTerm}`;
|
const url = `${this.site}?s=${searchTerm}`;
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(url, { headers });
|
const result = await fetchApi(url, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ class ChireadsPlugin implements Plugin.PluginBase {
|
|||||||
site: string;
|
site: string;
|
||||||
version: string;
|
version: string;
|
||||||
userAgent: string;
|
userAgent: string;
|
||||||
cookieString: string;
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.id = "chireads.com";
|
this.id = "chireads.com";
|
||||||
this.name = "Chireads";
|
this.name = "Chireads";
|
||||||
@@ -17,7 +17,6 @@ class ChireadsPlugin implements Plugin.PluginBase {
|
|||||||
this.site = "https://chireads.com";
|
this.site = "https://chireads.com";
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36";
|
this.userAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36";
|
||||||
this.cookieString = "''";
|
|
||||||
}
|
}
|
||||||
parseNovels(loadedCheerio: CheerioAPI) {
|
parseNovels(loadedCheerio: CheerioAPI) {
|
||||||
return [];
|
return [];
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class NovelDeGlacePlugin implements Plugin.PluginBase{
|
|||||||
site: string;
|
site: string;
|
||||||
version: string;
|
version: string;
|
||||||
userAgent: string;
|
userAgent: string;
|
||||||
cookieString: string;
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.id = "NDG.com";
|
this.id = "NDG.com";
|
||||||
this.name = "NovelDeGlace";
|
this.name = "NovelDeGlace";
|
||||||
@@ -18,7 +18,6 @@ class NovelDeGlacePlugin implements Plugin.PluginBase{
|
|||||||
this.site = "https://noveldeglace.com/";
|
this.site = "https://noveldeglace.com/";
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "''";
|
this.userAgent = "''";
|
||||||
this.cookieString = "''";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async popularNovels(page: number): Promise<Plugin.NovelItem[]> {
|
async popularNovels(page: number): Promise<Plugin.NovelItem[]> {
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ class LightNovelBrasil implements Plugin.PluginBase {
|
|||||||
site = "https://lightnovelbrasil.com/";
|
site = "https://lightnovelbrasil.com/";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>
|
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>
|
||||||
@@ -28,9 +27,6 @@ class LightNovelBrasil implements Plugin.PluginBase {
|
|||||||
link += "&order=" + (filters?.order ? filters.order : "popular");
|
link += "&order=" + (filters?.order ? filters.order : "popular");
|
||||||
|
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const body = await fetchApi(link, { headers }).then((result) =>
|
const body = await fetchApi(link, { headers }).then((result) =>
|
||||||
result.text()
|
result.text()
|
||||||
);
|
);
|
||||||
@@ -63,9 +59,6 @@ class LightNovelBrasil implements Plugin.PluginBase {
|
|||||||
async parseNovelAndChapters(novelUrl: string): Promise<Plugin.SourceNovel> {
|
async parseNovelAndChapters(novelUrl: string): Promise<Plugin.SourceNovel> {
|
||||||
const url = novelUrl;
|
const url = novelUrl;
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(url, { headers });
|
const result = await fetchApi(url, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
@@ -146,9 +139,6 @@ class LightNovelBrasil implements Plugin.PluginBase {
|
|||||||
}
|
}
|
||||||
async parseChapter(chapterUrl: string): Promise<string> {
|
async parseChapter(chapterUrl: string): Promise<string> {
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(chapterUrl, { headers });
|
const result = await fetchApi(chapterUrl, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
@@ -165,9 +155,6 @@ class LightNovelBrasil implements Plugin.PluginBase {
|
|||||||
): Promise<Plugin.NovelItem[]> {
|
): Promise<Plugin.NovelItem[]> {
|
||||||
const url = `${this.site}?s=${searchTerm}`;
|
const url = `${this.site}?s=${searchTerm}`;
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(url, { headers });
|
const result = await fetchApi(url, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ class freedlit implements Plugin.PluginBase {
|
|||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
icon = "src/ru/freedlit/icon.png";
|
icon = "src/ru/freedlit/icon.png";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
page: number,
|
page: number,
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ class AuthorToday implements Plugin.PluginBase {
|
|||||||
site = "https://author.today";
|
site = "https://author.today";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ class Bookriver implements Plugin.PluginBase {
|
|||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
icon = "src/ru/bookriver/icon.png";
|
icon = "src/ru/bookriver/icon.png";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ class ficbook implements Plugin.PluginBase {
|
|||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
icon = "src/ru/ficbook/icon.png";
|
icon = "src/ru/ficbook/icon.png";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ class Jaomix implements Plugin.PluginBase {
|
|||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
icon = "src/ru/jaomix/icon.png";
|
icon = "src/ru/jaomix/icon.png";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ class TL implements Plugin.PluginBase {
|
|||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
icon = "src/ru/noveltl/icon.png";
|
icon = "src/ru/noveltl/icon.png";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
page: number,
|
page: number,
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ class RNBH implements Plugin.PluginBase {
|
|||||||
site = "https://ranobehub.org/";
|
site = "https://ranobehub.org/";
|
||||||
icon = "src/ru/ranobehub/icon.png";
|
icon = "src/ru/ranobehub/icon.png";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ class RLIB implements Plugin.PluginBase {
|
|||||||
icon = "src/ru/ranobelib/icon.png";
|
icon = "src/ru/ranobelib/icon.png";
|
||||||
ui: string | number | undefined = undefined;
|
ui: string | number | undefined = undefined;
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ class RNRF implements Plugin.PluginBase {
|
|||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
icon = "src/ru/ranoberf/icon.png";
|
icon = "src/ru/ranoberf/icon.png";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ class ReN implements Plugin.PluginBase {
|
|||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
icon = "src/ru/renovels/icon.png";
|
icon = "src/ru/renovels/icon.png";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ class TuNovelaLigera implements Plugin.PluginBase {
|
|||||||
site = "https://tunovelaligera.com/";
|
site = "https://tunovelaligera.com/";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
@@ -28,9 +27,6 @@ class TuNovelaLigera implements Plugin.PluginBase {
|
|||||||
link += filters.order;
|
link += filters.order;
|
||||||
|
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(link, { headers });
|
const result = await fetchApi(link, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
@@ -59,9 +55,6 @@ class TuNovelaLigera implements Plugin.PluginBase {
|
|||||||
async parseNovelAndChapters(novelUrl: string): Promise<Plugin.SourceNovel> {
|
async parseNovelAndChapters(novelUrl: string): Promise<Plugin.SourceNovel> {
|
||||||
const url = novelUrl;
|
const url = novelUrl;
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(url, { headers });
|
const result = await fetchApi(url, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
@@ -209,9 +202,6 @@ class TuNovelaLigera implements Plugin.PluginBase {
|
|||||||
|
|
||||||
async parseChapter(chapterUrl: string): Promise<string> {
|
async parseChapter(chapterUrl: string): Promise<string> {
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(chapterUrl);
|
const result = await fetchApi(chapterUrl);
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ class LSHNovel implements Plugin.PluginBase {
|
|||||||
site = "https://lshnovel.com/";
|
site = "https://lshnovel.com/";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>
|
{ filters }: Plugin.PopularNovelsOptions<typeof this.filters>
|
||||||
@@ -29,9 +28,6 @@ class LSHNovel implements Plugin.PluginBase {
|
|||||||
link += "&order=" + filters.order;
|
link += "&order=" + filters.order;
|
||||||
|
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const body = await fetchApi(link, { headers }).then((result) =>
|
const body = await fetchApi(link, { headers }).then((result) =>
|
||||||
result.text()
|
result.text()
|
||||||
);
|
);
|
||||||
@@ -64,9 +60,6 @@ class LSHNovel implements Plugin.PluginBase {
|
|||||||
async parseNovelAndChapters(novelUrl: string): Promise<Plugin.SourceNovel> {
|
async parseNovelAndChapters(novelUrl: string): Promise<Plugin.SourceNovel> {
|
||||||
const url = novelUrl;
|
const url = novelUrl;
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(url, { headers });
|
const result = await fetchApi(url, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
@@ -146,9 +139,6 @@ class LSHNovel implements Plugin.PluginBase {
|
|||||||
}
|
}
|
||||||
async parseChapter(chapterUrl: string): Promise<string> {
|
async parseChapter(chapterUrl: string): Promise<string> {
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(chapterUrl, { headers });
|
const result = await fetchApi(chapterUrl, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
@@ -165,9 +155,6 @@ class LSHNovel implements Plugin.PluginBase {
|
|||||||
): Promise<Plugin.NovelItem[]> {
|
): Promise<Plugin.NovelItem[]> {
|
||||||
const url = `${this.site}?s=${searchTerm}`;
|
const url = `${this.site}?s=${searchTerm}`;
|
||||||
const headers = new Headers();
|
const headers = new Headers();
|
||||||
if (this.cookieString) {
|
|
||||||
headers.append("cookie", this.cookieString);
|
|
||||||
}
|
|
||||||
const result = await fetchApi(url, { headers });
|
const result = await fetchApi(url, { headers });
|
||||||
const body = await result.text();
|
const body = await result.text();
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ class Smakolykytl implements Plugin.PluginBase {
|
|||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
icon = "src/ua/smakolykytl/icon.png";
|
icon = "src/ua/smakolykytl/icon.png";
|
||||||
userAgent = "";
|
userAgent = "";
|
||||||
cookieString = "";
|
|
||||||
|
|
||||||
async popularNovels(
|
async popularNovels(
|
||||||
pageNo: number,
|
pageNo: number,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ class HakoPlugin implements Plugin.PluginBase {
|
|||||||
site: string;
|
site: string;
|
||||||
version: string;
|
version: string;
|
||||||
userAgent: string;
|
userAgent: string;
|
||||||
cookieString: string;
|
|
||||||
constructor() {
|
constructor() {
|
||||||
this.id = "ln.hako";
|
this.id = "ln.hako";
|
||||||
this.name = "Hako";
|
this.name = "Hako";
|
||||||
@@ -17,7 +17,6 @@ class HakoPlugin implements Plugin.PluginBase {
|
|||||||
this.site = "https://ln.hako.vn";
|
this.site = "https://ln.hako.vn";
|
||||||
this.version = "1.0.0";
|
this.version = "1.0.0";
|
||||||
this.userAgent = "";
|
this.userAgent = "";
|
||||||
this.cookieString = "";
|
|
||||||
}
|
}
|
||||||
parseNovels(loadedCheerio: CheerioAPI) {
|
parseNovels(loadedCheerio: CheerioAPI) {
|
||||||
const novels: Plugin.NovelItem[] = [];
|
const novels: Plugin.NovelItem[] = [];
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user