Multisrc Readnovelfull: add boxnovel and plugins (#1656)

* base commit

* some changes

* remove pagePlugin
This commit is contained in:
K1ngfish3r
2025-04-27 12:08:27 +05:00
committed by GitHub
parent 309b91b27e
commit dfb2a01e7a
13 changed files with 1168 additions and 391 deletions
+10 -4
View File
@@ -1,15 +1,21 @@
import { readFileSync } from 'fs';
import list from './sources.json' with { type: 'json' };
import { existsSync, readFileSync } from 'fs';
import { fileURLToPath } from 'url';
import { dirname, join } from 'path';
const folder = dirname(fileURLToPath(import.meta.url));
import list from './sources.json' with { type: 'json' };
export const generateAll = function () {
return list.map(source => {
const exist = existsSync(join(folder, 'filters', source.id + '.json'));
if (exist) {
const filters = readFileSync(
join(folder, 'filters', source.id + '.json'),
);
source.filters = JSON.parse(filters).filters;
}
console.log(
`[readnovelfull] Generating: ${source.id}${' '.repeat(20 - source.id.length)}`,
`[readnovelfull] Generating: ${source.id}${' '.repeat(20 - source.id.length)} ${source.filters ? '🔎with filters🔍' : '🚫no filters🚫'}`,
);
return generator(source);
});