From 527b4bb22795d168334ca0556f0c9be558ac41f6 Mon Sep 17 00:00:00 2001 From: Naufal Date: Sat, 2 Sep 2023 05:52:45 +0700 Subject: [PATCH] Mangastream Update (#437) - Fix Kanzenin new domain - Fix Sekaikomik new domain - Fix Manhwalist new domain - Fix Mangasusu new domain - Remove Miraiscans (Inactive) --- .../sources/kanzenin/res/source.json | 4 +- .../mangastream/sources/kanzenin/src/lib.rs | 2 +- .../sources/mangasusu/res/source.json | 4 +- .../mangastream/sources/mangasusu/src/lib.rs | 2 +- .../sources/manhwalist/res/source.json | 4 +- .../mangastream/sources/manhwalist/src/lib.rs | 2 +- .../mangastream/sources/miraiscans/Cargo.toml | 12 - .../sources/miraiscans/res/Icon.png | Bin 6864 -> 0 bytes .../sources/miraiscans/res/filters.json | 382 ------------------ .../sources/miraiscans/res/source.json | 20 - .../mangastream/sources/miraiscans/src/lib.rs | 53 --- .../sources/sekaikomik/res/source.json | 4 +- .../mangastream/sources/sekaikomik/src/lib.rs | 2 +- 13 files changed, 12 insertions(+), 479 deletions(-) delete mode 100644 src/rust/mangastream/sources/miraiscans/Cargo.toml delete mode 100644 src/rust/mangastream/sources/miraiscans/res/Icon.png delete mode 100644 src/rust/mangastream/sources/miraiscans/res/filters.json delete mode 100644 src/rust/mangastream/sources/miraiscans/res/source.json delete mode 100644 src/rust/mangastream/sources/miraiscans/src/lib.rs diff --git a/src/rust/mangastream/sources/kanzenin/res/source.json b/src/rust/mangastream/sources/kanzenin/res/source.json index 1bfc36380..07dac290d 100644 --- a/src/rust/mangastream/sources/kanzenin/res/source.json +++ b/src/rust/mangastream/sources/kanzenin/res/source.json @@ -3,8 +3,8 @@ "id": "id.kanzenin", "lang": "id", "name": "Kanzenin", - "version": 2, - "url": "https://kanzenin.xyz/", + "version": 3, + "url": "https://kanzenin.info", "nsfw": 2 }, "listings": [ diff --git a/src/rust/mangastream/sources/kanzenin/src/lib.rs b/src/rust/mangastream/sources/kanzenin/src/lib.rs index 9ad7f9f4b..ec27f8aaa 100644 --- a/src/rust/mangastream/sources/kanzenin/src/lib.rs +++ b/src/rust/mangastream/sources/kanzenin/src/lib.rs @@ -8,7 +8,7 @@ use mangastream_template::template::MangaStreamSource; fn get_instance() -> MangaStreamSource { MangaStreamSource { - base_url: String::from("https://kanzenin.xyz/"), + base_url: String::from("https://kanzenin.info"), is_nsfw: true, chapter_date_format: "MMMM d, yyyy", locale: "id", diff --git a/src/rust/mangastream/sources/mangasusu/res/source.json b/src/rust/mangastream/sources/mangasusu/res/source.json index c327ae7e7..3e28ab3a3 100644 --- a/src/rust/mangastream/sources/mangasusu/res/source.json +++ b/src/rust/mangastream/sources/mangasusu/res/source.json @@ -3,8 +3,8 @@ "id": "id.mangasusu", "lang": "id", "name": "Mangasusu", - "version": 2, - "url": "https://92.84.132.251", + "version": 3, + "url": "https://mangasusuku.xyz", "nsfw": 2 }, "listings": [ diff --git a/src/rust/mangastream/sources/mangasusu/src/lib.rs b/src/rust/mangastream/sources/mangasusu/src/lib.rs index c3e1a1b2b..455a2ea66 100644 --- a/src/rust/mangastream/sources/mangasusu/src/lib.rs +++ b/src/rust/mangastream/sources/mangasusu/src/lib.rs @@ -8,7 +8,7 @@ use mangastream_template::template::MangaStreamSource; fn get_instance() -> MangaStreamSource { MangaStreamSource { - base_url: String::from("https://92.84.132.251"), + base_url: String::from("https://mangasusuku.xyz"), traverse_pathname: "komik", is_nsfw: true, manga_details_author: "td:contains(Author)+td", diff --git a/src/rust/mangastream/sources/manhwalist/res/source.json b/src/rust/mangastream/sources/manhwalist/res/source.json index 8953e6440..0469bbdc1 100644 --- a/src/rust/mangastream/sources/manhwalist/res/source.json +++ b/src/rust/mangastream/sources/manhwalist/res/source.json @@ -3,8 +3,8 @@ "id": "id.manhwalist", "lang": "id", "name": "Manhwalist", - "version": 2, - "url": "https://manhwalist.xyz" + "version": 3, + "url": "https://manhwalist.com" }, "listings": [ { diff --git a/src/rust/mangastream/sources/manhwalist/src/lib.rs b/src/rust/mangastream/sources/manhwalist/src/lib.rs index e4662069f..97be5eaf5 100644 --- a/src/rust/mangastream/sources/manhwalist/src/lib.rs +++ b/src/rust/mangastream/sources/manhwalist/src/lib.rs @@ -8,7 +8,7 @@ use mangastream_template::template::MangaStreamSource; fn get_instance() -> MangaStreamSource { MangaStreamSource { - base_url: String::from("https://manhwalist.xyz"), + base_url: String::from("https://manhwalist.com"), chapter_date_format: "MMMM d, yyyy", locale: "en", alt_pages: true, diff --git a/src/rust/mangastream/sources/miraiscans/Cargo.toml b/src/rust/mangastream/sources/miraiscans/Cargo.toml deleted file mode 100644 index 97a77595e..000000000 --- a/src/rust/mangastream/sources/miraiscans/Cargo.toml +++ /dev/null @@ -1,12 +0,0 @@ -[package] -name = "miraiscans" -version = "0.1.0" -edition = "2021" -publish = false - -[lib] -crate-type = ["cdylib"] - -[dependencies] -aidoku = { git = "https://github.com/Aidoku/aidoku-rs/" } -mangastream_template = { path = "../../template" } diff --git a/src/rust/mangastream/sources/miraiscans/res/Icon.png b/src/rust/mangastream/sources/miraiscans/res/Icon.png deleted file mode 100644 index 5d3c3938a8962f387d78fdbe56d25b18cc4fcbec..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6864 zcmb_h_dC^Z-2WIMNmeq7lZ3DA71=UxGg^UmqLiWxU zGC~N?yFcK$uIGoxb(x3z`rP;ZdcT%1oDSwBEe9=vASbV4(R%PX;NLq9IegSM-A;l} z#~)!$ToA-f?B6@tn51(Df^Y<0MXMTkCat`&#p#<2x9F~3SHqG&p?NB85&OQ~Qf^`J z;;;lNe6s(UDi7U{9%-GaN>>lJ+uIR+WA2f|OV9FX15uOXB9&#=Dr_=>$kUe@P-tGB z^Z1GJQx$wfwI{sJS3Bf)ecy|D$jv7oDUP@#Z<}p15q^Jke7ry}2Y0>OrWL>OTH20@iAh00Va?OW+k1a) zO>8(U{gMh6i}mu_OVwq?X3Z&!0si$;rx2K9Z#h zvaq!s>h0ZJ9g{cc)wqVxQ8BZzRX*OFyLc^*frf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w7%bA1iQ4NOUVM&CPwrOB5L|*Vn7)>-Sc= zLgI+wtA=qiH?MDRZyz4^di3a#xp@FMY&JUH$?*QDe+)G_33W(yRaMOGsr5hbrvQ@J zHu&FztH<-7VMD^rO|J$hv?ELqW-HeErdP+r#I4ExU%vgzJ$vj!*n2@k59mvfs~S4! J0yXo%{{a^?FZ}=j diff --git a/src/rust/mangastream/sources/miraiscans/res/filters.json b/src/rust/mangastream/sources/miraiscans/res/filters.json deleted file mode 100644 index 2cc663fbe..000000000 --- a/src/rust/mangastream/sources/miraiscans/res/filters.json +++ /dev/null @@ -1,382 +0,0 @@ -[ - { - "type": "title" - }, - { - "type": "group", - "name": "Tags", - "filters": [ - { - "type": "genre", - "name": "4-Koma", - "id": "447" - }, - { - "type": "genre", - "name": "Action", - "id": "3" - }, - { - "type": "genre", - "name": "Adventure", - "id": "4" - }, - { - "type": "genre", - "name": "Alien", - "id": "2925" - }, - { - "type": "genre", - "name": "Animals", - "id": "2880" - }, - { - "type": "genre", - "name": "Comedy", - "id": "5" - }, - { - "type": "genre", - "name": "Cooking", - "id": "51" - }, - { - "type": "genre", - "name": "Crime", - "id": "509" - }, - { - "type": "genre", - "name": "Delinquents", - "id": "2911" - }, - { - "type": "genre", - "name": "Demons", - "id": "45" - }, - { - "type": "genre", - "name": "Drama", - "id": "8" - }, - { - "type": "genre", - "name": "Dungeon", - "id": "3383" - }, - { - "type": "genre", - "name": "Ecchi", - "id": "34" - }, - { - "type": "genre", - "name": "Fantasy", - "id": "6" - }, - { - "type": "genre", - "name": "Game", - "id": "116" - }, - { - "type": "genre", - "name": "Gender Bender", - "id": "456" - }, - { - "type": "genre", - "name": "Ghost", - "id": "2889" - }, - { - "type": "genre", - "name": "Gore", - "id": "56" - }, - { - "type": "genre", - "name": "Gyaru", - "id": "2878" - }, - { - "type": "genre", - "name": "Harem", - "id": "42" - }, - { - "type": "genre", - "name": "Historical", - "id": "52" - }, - { - "type": "genre", - "name": "Horror", - "id": "22" - }, - { - "type": "genre", - "name": "Isekai", - "id": "46" - }, - { - "type": "genre", - "name": "Josei", - "id": "119" - }, - { - "type": "genre", - "name": "Loli", - "id": "2955" - }, - { - "type": "genre", - "name": "Mafia", - "id": "2874" - }, - { - "type": "genre", - "name": "Magic", - "id": "30" - }, - { - "type": "genre", - "name": "Magical Girls", - "id": "3127" - }, - { - "type": "genre", - "name": "Martial Arts", - "id": "13" - }, - { - "type": "genre", - "name": "Mature", - "id": "23" - }, - { - "type": "genre", - "name": "Mecha", - "id": "267" - }, - { - "type": "genre", - "name": "Medical", - "id": "27" - }, - { - "type": "genre", - "name": "Military", - "id": "57" - }, - { - "type": "genre", - "name": "Monster Girls", - "id": "2956" - }, - { - "type": "genre", - "name": "Monsters", - "id": "1650" - }, - { - "type": "genre", - "name": "Music", - "id": "1129" - }, - { - "type": "genre", - "name": "Mystery", - "id": "9" - }, - { - "type": "genre", - "name": "Ninja", - "id": "3062" - }, - { - "type": "genre", - "name": "Office Workers", - "id": "2909" - }, - { - "type": "genre", - "name": "One-Shot", - "id": "419" - }, - { - "type": "genre", - "name": "Philosophical", - "id": "3032" - }, - { - "type": "genre", - "name": "Police", - "id": "710" - }, - { - "type": "genre", - "name": "Post-Apocalyptic", - "id": "232" - }, - { - "type": "genre", - "name": "Psychological", - "id": "24" - }, - { - "type": "genre", - "name": "Reincarnation", - "id": "47" - }, - { - "type": "genre", - "name": "Romance", - "id": "35" - }, - { - "type": "genre", - "name": "Samurai", - "id": "1057" - }, - { - "type": "genre", - "name": "School Life", - "id": "17" - }, - { - "type": "genre", - "name": "Sci-fi", - "id": "10" - }, - { - "type": "genre", - "name": "Seinen", - "id": "11" - }, - { - "type": "genre", - "name": "Shota", - "id": "3129" - }, - { - "type": "genre", - "name": "Shoujo", - "id": "154" - }, - { - "type": "genre", - "name": "Shoujo Ai", - "id": "1133" - }, - { - "type": "genre", - "name": "Shounen", - "id": "14" - }, - { - "type": "genre", - "name": "Shounen Ai", - "id": "1494" - }, - { - "type": "genre", - "name": "Slice of Life", - "id": "28" - }, - { - "type": "genre", - "name": "Sports", - "id": "378" - }, - { - "type": "genre", - "name": "Super Power", - "id": "159" - }, - { - "type": "genre", - "name": "Superhero", - "id": "3118" - }, - { - "type": "genre", - "name": "Supernatural", - "id": "15" - }, - { - "type": "genre", - "name": "Survival", - "id": "536" - }, - { - "type": "genre", - "name": "System", - "id": "3384" - }, - { - "type": "genre", - "name": "Thriller", - "id": "111" - }, - { - "type": "genre", - "name": "Time Travel", - "id": "827" - }, - { - "type": "genre", - "name": "Tragedy", - "id": "25" - }, - { - "type": "genre", - "name": "Vampire", - "id": "1098" - }, - { - "type": "genre", - "name": "Virtual Reality", - "id": "2904" - }, - { - "type": "genre", - "name": "Wuxia", - "id": "1398" - }, - { - "type": "genre", - "name": "Yuri", - "id": "1607" - }, - { - "type": "genre", - "name": "Zombies", - "id": "591" - } - ] - }, - { - "type": "select", - "name": "Status", - "options": [ - "All", - "Ongoing", - "Completed", - "Hiatus" - ] - }, - { - "type": "select", - "name": "Type", - "options": [ - "All", - "Manga", - "Manhwa", - "Manhua", - "Comic" - ] - } -] diff --git a/src/rust/mangastream/sources/miraiscans/res/source.json b/src/rust/mangastream/sources/miraiscans/res/source.json deleted file mode 100644 index 5019de632..000000000 --- a/src/rust/mangastream/sources/miraiscans/res/source.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "info": { - "id": "id.miraiscans", - "lang": "id", - "name": "MiraiScans", - "version": 1, - "url": "https://miraiscans.com" - }, - "listings": [ - { - "name": "Popular" - }, - { - "name": "Latest" - }, - { - "name": "New" - } - ] -} diff --git a/src/rust/mangastream/sources/miraiscans/src/lib.rs b/src/rust/mangastream/sources/miraiscans/src/lib.rs deleted file mode 100644 index 518faa16f..000000000 --- a/src/rust/mangastream/sources/miraiscans/src/lib.rs +++ /dev/null @@ -1,53 +0,0 @@ -#![no_std] -use aidoku::{ - error::Result, prelude::*, std::net::Request, std::String, std::Vec, Chapter, DeepLink, Filter, - Listing, Manga, MangaPageResult, Page, -}; - -use mangastream_template::template::MangaStreamSource; - -fn get_instance() -> MangaStreamSource { - MangaStreamSource { - base_url: String::from("https://miraiscans.com"), - traverse_pathname: "komik", - chapter_date_format: "MMMM d, yyyy", - alt_pages: true, - locale: "id", - ..Default::default() - } -} - -#[get_manga_list] -fn get_manga_list(filters: Vec, page: i32) -> Result { - get_instance().parse_manga_list(filters, page) -} - -#[get_manga_listing] -fn get_manga_listing(listing: Listing, page: i32) -> Result { - get_instance().parse_manga_listing(get_instance().base_url, listing.name, page) -} - -#[get_manga_details] -fn get_manga_details(id: String) -> Result { - get_instance().parse_manga_details(id) -} - -#[get_chapter_list] -fn get_chapter_list(id: String) -> Result> { - get_instance().parse_chapter_list(id) -} - -#[get_page_list] -fn get_page_list(_manga_id: String, id: String) -> Result> { - get_instance().parse_page_list(id) -} - -#[modify_image_request] -fn modify_image_request(request: Request) { - get_instance().modify_image_request(request) -} - -#[handle_url] -pub fn handle_url(url: String) -> Result { - get_instance().handle_url(url) -} diff --git a/src/rust/mangastream/sources/sekaikomik/res/source.json b/src/rust/mangastream/sources/sekaikomik/res/source.json index d45d5d9d2..54ee5c975 100644 --- a/src/rust/mangastream/sources/sekaikomik/res/source.json +++ b/src/rust/mangastream/sources/sekaikomik/res/source.json @@ -3,8 +3,8 @@ "id": "id.sekaikomik", "lang": "id", "name": "SekaiKomik", - "version": 1, - "url": "https://sekaikomik.online", + "version": 2, + "url": "https://sekaikomik.bio", "nsfw": 2 }, "listings": [ diff --git a/src/rust/mangastream/sources/sekaikomik/src/lib.rs b/src/rust/mangastream/sources/sekaikomik/src/lib.rs index 4ca68810e..998c3081f 100644 --- a/src/rust/mangastream/sources/sekaikomik/src/lib.rs +++ b/src/rust/mangastream/sources/sekaikomik/src/lib.rs @@ -8,7 +8,7 @@ use mangastream_template::template::MangaStreamSource; fn get_instance() -> MangaStreamSource { MangaStreamSource { - base_url: String::from("https://sekaikomik.online"), + base_url: String::from("https://sekaikomik.bio"), is_nsfw: true, chapter_date_format: "MMMM d, yyyy", locale: "id",