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();
|
||||
|
||||
Reference in New Issue
Block a user