From 600030e878d80d8dc9c5bacb3dfb64591827dc73 Mon Sep 17 00:00:00 2001 From: Sandeep Rao Date: Wed, 25 Dec 2024 01:48:46 +0530 Subject: [PATCH 1/7] fixes cubari, manganato, webtoons and mangatx-> wordpress (#1) --- plugins/catmanga/README.md | 12 -- plugins/catmanga/index.js | 164 ----------------------- plugins/catmanga/info.json | 8 -- plugins/cubari/README.md | 23 ++-- plugins/cubari/index.js | 40 ++++-- plugins/dm5/index.js | 5 +- plugins/manganato/.gitignore | 2 + plugins/manganato/index.js | 6 +- plugins/mangatx/info.json | 8 -- plugins/manhuadb/index.js | 4 +- plugins/webtoons/index.js | 24 +--- plugins/{mangatx => wordpress}/README.md | 2 +- plugins/{mangatx => wordpress}/index.js | 14 +- plugins/wordpress/info.json | 8 ++ 14 files changed, 81 insertions(+), 239 deletions(-) delete mode 100644 plugins/catmanga/README.md delete mode 100644 plugins/catmanga/index.js delete mode 100644 plugins/catmanga/info.json create mode 100644 plugins/manganato/.gitignore delete mode 100644 plugins/mangatx/info.json rename plugins/{mangatx => wordpress}/README.md (68%) rename plugins/{mangatx => wordpress}/index.js (79%) create mode 100644 plugins/wordpress/info.json diff --git a/plugins/catmanga/README.md b/plugins/catmanga/README.md deleted file mode 100644 index 48fce25..0000000 --- a/plugins/catmanga/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# Catmanga Plugin - -### NOTE: Catmanga has shutdown. This plugin will no longer work. - -This is the Mango plugin for [Catmanga](https://catmanga.org). - -Note that - -- All downloaded chapters will be placed in their respective series folder in your library. -- Cloudflare rate limits extensive downloads. Adjust `wait_seconds` in `info.json` if you plan to download many chapters in one go (or chapters with many pages). - -Maintained by [@browningluke](https://github.com/browningluke). \ No newline at end of file diff --git a/plugins/catmanga/index.js b/plugins/catmanga/index.js deleted file mode 100644 index 5494371..0000000 --- a/plugins/catmanga/index.js +++ /dev/null @@ -1,164 +0,0 @@ -var currentPage = 0; -var digits = 0; -var imgURLs; - -const ROOT_URL = "https://catmanga.org/"; - -// Helper function. Builds the API URL since there are no ES6 template strings. -function buildApiEndpoint(buildID, mangaID, chapterNum) { - return ROOT_URL + "_next/data/" + buildID - + "/series/" + mangaID + "/" + chapterNum + ".json"; -} - -function listChapters(query) { - // Get API data (stored in a