remove this.cookieString attribute
This commit is contained in:
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,6 @@ var WPmangaStreamPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
}
|
||||
WPmangaStreamPlugin.prototype.popularNovels = function (page) {
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,6 @@ var KolNovel = /** @class */ (function () {
|
||||
this.site = "https://kolnovel.lol/";
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.filters = {
|
||||
order: {
|
||||
label: "ترتيب حسب",
|
||||
@@ -148,9 +147,6 @@ var KolNovel = /** @class */ (function () {
|
||||
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");
|
||||
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 result.text();
|
||||
})];
|
||||
@@ -185,9 +181,6 @@ var KolNovel = /** @class */ (function () {
|
||||
case 0:
|
||||
url = novelUrl;
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, fetch(url, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
@@ -258,9 +251,6 @@ var KolNovel = /** @class */ (function () {
|
||||
switch (_b.label) {
|
||||
case 0:
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, fetch(chapterUrl, { headers: headers })];
|
||||
case 1:
|
||||
result = _b.sent();
|
||||
@@ -286,9 +276,6 @@ var KolNovel = /** @class */ (function () {
|
||||
case 0:
|
||||
url = "".concat(this.site, "?s=").concat(searchTerm);
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
|
||||
@@ -48,7 +48,6 @@ var Linovelib = /** @class */ (function () {
|
||||
this.site = "https://w.linovelib.com";
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.filters = {
|
||||
sort: {
|
||||
label: "Sort By",
|
||||
@@ -83,9 +82,6 @@ var Linovelib = /** @class */ (function () {
|
||||
link += filters.sort;
|
||||
link += "/".concat(pageNo, ".html");
|
||||
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 result.text();
|
||||
})];
|
||||
@@ -124,9 +120,6 @@ var Linovelib = /** @class */ (function () {
|
||||
case 0:
|
||||
url = novelUrl;
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||
case 1:
|
||||
result = _b.sent();
|
||||
@@ -206,9 +199,6 @@ var Linovelib = /** @class */ (function () {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
chapterText = "", pageText = "";
|
||||
pageNumber = 1;
|
||||
skillgg = {
|
||||
@@ -416,9 +406,6 @@ var Linovelib = /** @class */ (function () {
|
||||
searchUrl = "".concat(this.site, "/search/");
|
||||
Term = encodeURI(searchTerm);
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
pageNo = 1;
|
||||
novels = [];
|
||||
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.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,6 @@ var ReadwnPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
ReadwnPlugin.prototype.popularNovels = function (pageNo, _a) {
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,6 @@ var ReadwnPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
ReadwnPlugin.prototype.popularNovels = function (pageNo, _a) {
|
||||
|
||||
@@ -50,7 +50,6 @@ var ReadwnPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
ReadwnPlugin.prototype.popularNovels = function (pageNo, _a) {
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,6 @@ var BLN = /** @class */ (function () {
|
||||
this.site = "https://bestlightnovel.com/";
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
}
|
||||
BLN.prototype.popularNovels = function (pageNo, options) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
|
||||
@@ -46,7 +46,6 @@ var FTest = /** @class */ (function () {
|
||||
this.site = "https://noblemtl.com/";
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.filters = {
|
||||
picker: {
|
||||
type: filterInputs_1.FilterTypes.Picker,
|
||||
|
||||
@@ -46,7 +46,6 @@ var FreeWebNovel = /** @class */ (function () {
|
||||
this.version = "1.0.0";
|
||||
this.icon = "src/en/freewebnovel/icon.png";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.fetchImage = fetch_1.fetchFile;
|
||||
}
|
||||
FreeWebNovel.prototype.popularNovels = function (page, _a) {
|
||||
|
||||
@@ -47,7 +47,6 @@ var NobleMTL = /** @class */ (function () {
|
||||
this.site = "https://noblemtl.com/";
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.filters = {
|
||||
order: {
|
||||
label: "Sort By",
|
||||
@@ -196,9 +195,6 @@ var NobleMTL = /** @class */ (function () {
|
||||
link += "&status=" + filters.status.value;
|
||||
link += "&order=" + filters.order.value;
|
||||
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 result.text();
|
||||
})];
|
||||
@@ -233,9 +229,6 @@ var NobleMTL = /** @class */ (function () {
|
||||
case 0:
|
||||
url = novelUrl;
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
@@ -311,9 +304,6 @@ var NobleMTL = /** @class */ (function () {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
@@ -335,9 +325,6 @@ var NobleMTL = /** @class */ (function () {
|
||||
case 0:
|
||||
url = "".concat(this.site, "?s=").concat(searchTerm);
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
|
||||
@@ -47,7 +47,6 @@ var PandaMTL = /** @class */ (function () {
|
||||
this.site = "https://pandamtl.com/";
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.filters = {
|
||||
order: {
|
||||
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 += "&order=" + ((filters === null || filters === void 0 ? void 0 : filters.order) ? filters.order : "popular");
|
||||
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 result.text();
|
||||
})];
|
||||
@@ -163,9 +159,6 @@ var PandaMTL = /** @class */ (function () {
|
||||
case 0:
|
||||
url = novelUrl;
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
@@ -234,9 +227,6 @@ var PandaMTL = /** @class */ (function () {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
@@ -258,9 +248,6 @@ var PandaMTL = /** @class */ (function () {
|
||||
case 0:
|
||||
url = "".concat(this.site, "?s=").concat(searchTerm);
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
|
||||
@@ -47,7 +47,6 @@ var WPmangaStreamPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
}
|
||||
WPmangaStreamPlugin.prototype.popularNovels = function (page) {
|
||||
|
||||
@@ -46,7 +46,6 @@ var ChireadsPlugin = /** @class */ (function () {
|
||||
this.site = "https://chireads.com";
|
||||
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.cookieString = "''";
|
||||
}
|
||||
ChireadsPlugin.prototype.parseNovels = function (loadedCheerio) {
|
||||
return [];
|
||||
|
||||
@@ -47,7 +47,6 @@ var NovelDeGlacePlugin = /** @class */ (function () {
|
||||
this.site = "https://noveldeglace.com/";
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "''";
|
||||
this.cookieString = "''";
|
||||
}
|
||||
NovelDeGlacePlugin.prototype.popularNovels = function (page) {
|
||||
return __awaiter(this, void 0, void 0, function () {
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,6 @@ var LightNovelBrasil = /** @class */ (function () {
|
||||
this.site = "https://lightnovelbrasil.com/";
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.filters = {
|
||||
order: {
|
||||
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 += "&order=" + ((filters === null || filters === void 0 ? void 0 : filters.order) ? filters.order : "popular");
|
||||
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 result.text();
|
||||
})];
|
||||
@@ -233,9 +229,6 @@ var LightNovelBrasil = /** @class */ (function () {
|
||||
case 0:
|
||||
url = novelUrl;
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
@@ -312,9 +305,6 @@ var LightNovelBrasil = /** @class */ (function () {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
@@ -336,9 +326,6 @@ var LightNovelBrasil = /** @class */ (function () {
|
||||
case 0:
|
||||
url = "".concat(this.site, "?s=").concat(searchTerm);
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
|
||||
@@ -49,7 +49,6 @@ var IfreedomPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
IfreedomPlugin.prototype.popularNovels = function (page, _a) {
|
||||
|
||||
@@ -50,7 +50,6 @@ var RulatePlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
RulatePlugin.prototype.popularNovels = function (pageNo, _a) {
|
||||
|
||||
@@ -47,7 +47,6 @@ var freedlit = /** @class */ (function () {
|
||||
this.version = "1.0.0";
|
||||
this.icon = "src/ru/freedlit/icon.png";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.fetchImage = fetch_1.fetchFile;
|
||||
this.filters = {
|
||||
sort: {
|
||||
|
||||
@@ -50,7 +50,6 @@ var RulatePlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
RulatePlugin.prototype.popularNovels = function (pageNo, _a) {
|
||||
|
||||
@@ -55,7 +55,6 @@ var AuthorToday = /** @class */ (function () {
|
||||
this.site = "https://author.today";
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.fetchImage = fetch_1.fetchFile;
|
||||
this.filters = {
|
||||
sort: {
|
||||
|
||||
@@ -52,7 +52,6 @@ var Bookriver = /** @class */ (function () {
|
||||
this.version = "1.0.0";
|
||||
this.icon = "src/ru/bookriver/icon.png";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.fetchImage = fetch_1.fetchFile;
|
||||
this.filters = {
|
||||
sort: {
|
||||
|
||||
@@ -49,7 +49,6 @@ var ficbook = /** @class */ (function () {
|
||||
this.version = "1.0.0";
|
||||
this.icon = "src/ru/ficbook/icon.png";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.fetchImage = fetch_1.fetchFile;
|
||||
this.filters = {
|
||||
sort: {
|
||||
|
||||
@@ -48,7 +48,6 @@ var Jaomix = /** @class */ (function () {
|
||||
this.version = "1.0.0";
|
||||
this.icon = "src/ru/jaomix/icon.png";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.fetchImage = fetch_1.fetchFile;
|
||||
this.filters = {
|
||||
sortby: {
|
||||
|
||||
@@ -53,7 +53,6 @@ var TL = /** @class */ (function () {
|
||||
this.version = "1.0.0";
|
||||
this.icon = "src/ru/noveltl/icon.png";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.fetchImage = fetch_1.fetchFile;
|
||||
this.filters = {
|
||||
tags: {
|
||||
|
||||
@@ -52,7 +52,6 @@ var RNBH = /** @class */ (function () {
|
||||
this.site = "https://ranobehub.org/";
|
||||
this.icon = "src/ru/ranobehub/icon.png";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.fetchImage = fetch_1.fetchFile;
|
||||
this.filters = {
|
||||
sort: {
|
||||
|
||||
@@ -53,7 +53,6 @@ var RLIB = /** @class */ (function () {
|
||||
this.icon = "src/ru/ranobelib/icon.png";
|
||||
this.ui = undefined;
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.fetchImage = fetch_1.fetchFile;
|
||||
this.filters = {
|
||||
sort: {
|
||||
|
||||
@@ -53,7 +53,6 @@ var RNRF = /** @class */ (function () {
|
||||
this.version = "1.0.0";
|
||||
this.icon = "src/ru/ranoberf/icon.png";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.fetchImage = fetch_1.fetchFile;
|
||||
this.filters = {
|
||||
sort: {
|
||||
|
||||
@@ -51,7 +51,6 @@ var ReN = /** @class */ (function () {
|
||||
this.version = "1.0.0";
|
||||
this.icon = "src/ru/renovels/icon.png";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.fetchImage = fetch_1.fetchFile;
|
||||
this.filters = {
|
||||
sort: {
|
||||
|
||||
@@ -49,7 +49,6 @@ var IfreedomPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
IfreedomPlugin.prototype.popularNovels = function (page, _a) {
|
||||
|
||||
@@ -50,7 +50,6 @@ var TuNovelaLigera = /** @class */ (function () {
|
||||
this.site = "https://tunovelaligera.com/";
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.filters = {
|
||||
order: {
|
||||
value: "?m_orderby=rating",
|
||||
@@ -137,9 +136,6 @@ var TuNovelaLigera = /** @class */ (function () {
|
||||
link += "/page/".concat(pageNo);
|
||||
link += filters.order;
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(link, { headers: headers })];
|
||||
case 1:
|
||||
result = _b.sent();
|
||||
@@ -175,9 +171,6 @@ var TuNovelaLigera = /** @class */ (function () {
|
||||
case 0:
|
||||
url = novelUrl;
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||
case 1:
|
||||
result = _c.sent();
|
||||
@@ -353,9 +346,6 @@ var TuNovelaLigera = /** @class */ (function () {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl)];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -63,7 +63,6 @@ var MadaraPlugin = /** @class */ (function () {
|
||||
this.site = metadata.sourceSite;
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.options = metadata.options;
|
||||
this.filters = metadata.filters;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,6 @@ var LSHNovel = /** @class */ (function () {
|
||||
this.site = "https://lshnovel.com/";
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.filters = {
|
||||
order: {
|
||||
value: "popular",
|
||||
@@ -144,9 +143,6 @@ var LSHNovel = /** @class */ (function () {
|
||||
link += "&status=" + filters.status;
|
||||
link += "&order=" + filters.order;
|
||||
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 result.text();
|
||||
})];
|
||||
@@ -181,9 +177,6 @@ var LSHNovel = /** @class */ (function () {
|
||||
case 0:
|
||||
url = novelUrl;
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
@@ -259,9 +252,6 @@ var LSHNovel = /** @class */ (function () {
|
||||
switch (_a.label) {
|
||||
case 0:
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(chapterUrl, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
@@ -283,9 +273,6 @@ var LSHNovel = /** @class */ (function () {
|
||||
case 0:
|
||||
url = "".concat(this.site, "?s=").concat(searchTerm);
|
||||
headers = new Headers();
|
||||
if (this.cookieString) {
|
||||
headers.append("cookie", this.cookieString);
|
||||
}
|
||||
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
|
||||
case 1:
|
||||
result = _a.sent();
|
||||
|
||||
@@ -50,7 +50,6 @@ var Smakolykytl = /** @class */ (function () {
|
||||
this.version = "1.0.0";
|
||||
this.icon = "src/ua/smakolykytl/icon.png";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
this.fetchImage = fetch_1.fetchFile;
|
||||
}
|
||||
Smakolykytl.prototype.popularNovels = function (pageNo, _a) {
|
||||
|
||||
@@ -47,7 +47,6 @@ var HakoPlugin = /** @class */ (function () {
|
||||
this.site = "https://ln.hako.vn";
|
||||
this.version = "1.0.0";
|
||||
this.userAgent = "";
|
||||
this.cookieString = "";
|
||||
}
|
||||
HakoPlugin.prototype.parseNovels = function (loadedCheerio) {
|
||||
var _this = this;
|
||||
|
||||
Reference in New Issue
Block a user