Last step to Alpha (#710)

* fix: novelhall id

* update readme

* update: actions

* fix: remove volume

* fix: remove showToast
This commit is contained in:
nyagami
2024-01-22 01:54:15 +07:00
committed by GitHub
parent f32c15a78d
commit a29175c421
17 changed files with 1608 additions and 657 deletions
-2
View File
@@ -39,7 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
var cheerio_1 = require("cheerio");
var fetch_1 = require("@libs/fetch");
var filterInputs_1 = require("@libs/filterInputs");
var showToast_1 = require("@libs/showToast");
var Linovelib = /** @class */ (function () {
function Linovelib() {
this.id = "linovelib";
@@ -433,7 +432,6 @@ var Linovelib = /** @class */ (function () {
};
novelResults = pageCheerio(".book-ol a.book-layout");
if (novelResults.length === 0) {
(0, showToast_1.showToast)("Bypass check by searching in Webview");
}
else {
loadSearchResults();
-2
View File
@@ -39,7 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
var cheerio_1 = require("cheerio");
var fetch_1 = require("@libs/fetch");
var filterInputs_1 = require("@libs/filterInputs");
var showToast_1 = require("@libs/showToast");
var EarlyNovelPlugin = /** @class */ (function () {
function EarlyNovelPlugin() {
this.id = "earlynovel";
@@ -161,7 +160,6 @@ var EarlyNovelPlugin = /** @class */ (function () {
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
(0, showToast_1.showToast)("Early Novel may take 20-30 seconds");
url = novelUrl;
headers = new Headers();
return [4 /*yield*/, (0, fetch_1.fetchApi)(url, { headers: headers })];
+1 -1
View File
@@ -40,7 +40,7 @@ var cheerio_1 = require("cheerio");
var fetch_1 = require("@libs/fetch");
var NovelHall = /** @class */ (function () {
function NovelHall() {
this.id = "novelhold";
this.id = "novelhall";
this.name = "Novel Hall";
this.version = "1.0.0";
this.icon = "src/en/novelhall/icon.png";
-4
View File
@@ -39,7 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
var cheerio_1 = require("cheerio");
var fetch_1 = require("@libs/fetch");
var filterInputs_1 = require("@libs/filterInputs");
var showToast_1 = require("@libs/showToast");
var defaultCover_1 = require("@libs/defaultCover");
var novelStatus_1 = require("@libs/novelStatus");
var TuNovelaLigera = /** @class */ (function () {
@@ -226,7 +225,6 @@ var TuNovelaLigera = /** @class */ (function () {
case 0:
n = url.split("/");
novelName = n[4];
(0, showToast_1.showToast)("Cargando desde Archivo...");
formData = new FormData();
formData.append("action", "madara_load_more");
formData.append("page", "0");
@@ -272,7 +270,6 @@ var TuNovelaLigera = /** @class */ (function () {
switch (_b.label) {
case 0:
chaptersUrl = "".concat(novelUrl, "?lcp_page0=").concat(i);
(0, showToast_1.showToast)("Cargando desde la p\u00E1gina ".concat(i, "/").concat(lastPage, "..."));
return [4 /*yield*/, (0, fetch_1.fetchApi)(chaptersUrl, { headers: headers })];
case 1:
result_1 = _b.sent();
@@ -324,7 +321,6 @@ var TuNovelaLigera = /** @class */ (function () {
case 3:
_a.chapters = _c.sent();
if (!!novel.chapters.length) return [3 /*break*/, 6];
(0, showToast_1.showToast)("¡Archivo no encontrado!");
return [4 /*yield*/, delay(1000)];
case 4:
_c.sent();