From 536281afb77a9fa8a0eb8a10e23c6751b9359702 Mon Sep 17 00:00:00 2001 From: MozkaGit Date: Sun, 10 Sep 2023 19:26:00 +0200 Subject: [PATCH 1/4] Add new source: Mangaread --- .../madara/sources/mangaread/.cargo/config | 2 + src/rust/madara/sources/mangaread/Cargo.toml | 20 ++ .../madara/sources/mangaread/res/Icon.png | Bin 0 -> 12052 bytes .../madara/sources/mangaread/res/filters.json | 315 ++++++++++++++++++ .../madara/sources/mangaread/res/source.json | 18 + src/rust/madara/sources/mangaread/src/lib.rs | 48 +++ 6 files changed, 403 insertions(+) create mode 100644 src/rust/madara/sources/mangaread/.cargo/config create mode 100644 src/rust/madara/sources/mangaread/Cargo.toml create mode 100644 src/rust/madara/sources/mangaread/res/Icon.png create mode 100644 src/rust/madara/sources/mangaread/res/filters.json create mode 100644 src/rust/madara/sources/mangaread/res/source.json create mode 100644 src/rust/madara/sources/mangaread/src/lib.rs diff --git a/src/rust/madara/sources/mangaread/.cargo/config b/src/rust/madara/sources/mangaread/.cargo/config new file mode 100644 index 000000000..f4e8c002f --- /dev/null +++ b/src/rust/madara/sources/mangaread/.cargo/config @@ -0,0 +1,2 @@ +[build] +target = "wasm32-unknown-unknown" diff --git a/src/rust/madara/sources/mangaread/Cargo.toml b/src/rust/madara/sources/mangaread/Cargo.toml new file mode 100644 index 000000000..d8fb78557 --- /dev/null +++ b/src/rust/madara/sources/mangaread/Cargo.toml @@ -0,0 +1,20 @@ +[package] +name = "mangaread" +version = "0.1.0" +edition = "2021" + +[lib] +crate-type = ["cdylib"] + +[profile.dev] +panic = "abort" + +[profile.release] +panic = "abort" +opt-level = "s" +strip = true +lto = true + +[dependencies] +aidoku = { git = "https://github.com/Aidoku/aidoku-rs" } +madara_template = { path = "../../template" } diff --git a/src/rust/madara/sources/mangaread/res/Icon.png b/src/rust/madara/sources/mangaread/res/Icon.png new file mode 100644 index 0000000000000000000000000000000000000000..47c929fb8860c0f4a30b62cac147a5d6a60d9666 GIT binary patch literal 12052 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{b-Z}%fV z2JRgIJVj7d&AuumYx=z6?=Dr5QiGm=9^H6q$ItwD{FrwGZa}Yd0st|-V3V0S!-mr( zBU?$25?9MrZyAW=UJ_1|kybr>l2c~I-{~OrzySi#;8e1X>S~^puAiY-`x~kg0dtAfJ~0JWcx`y#jS&4OHhI(5>!$u?52bIJkSV~!6EJ5|@1>+PyGTm&fgkb*R@1qQMuIDiFb$=Oretj-Gn#DJoLf_UTF z>oDy2oUE6z$$VU0{jW--;WtvzGwUIXXkF7f7_ULnFsfU3Cbo{J^w1&n zmNK8u8TvTy26nF>2N2(K$TB559UFoJ`26r8vI`5nKFHF*L09|r3jzS{k#%X&l39KG z6L91R+7b&oQL(EUr_tG12;ZLREdbP~x=YU3Wr=*fo@GueUmrbkUJ37>?*#<_MI;0S zFurGR25R+~GPBSW7gxFW*Lzac?a{0LS>Bt0Zu8Dz^G6)FuL4 zZ|BBI_G8$N2kjtjbj0P8Ss2_Rj{?;D?01BIxBm(t%F7MQZ!F~ZGh?K6v zLM5|Dy^if{1bu2+!0I@FT1QA+EnlY5@|#}E+Pob0W@KDYEWhfE{xAUW9Jsitv`thr zmq$ds+h4dsKczWk-;JLa|07$!O%A zlW81oK-CMLIN~b46k_gvGgvk(WcVKil6*sYR-HYq^ zn25w{6|hu*pi=rqwV`1Z07?vBoLBKP^R4V)#i2w>8(6fdk?C9K<1QKiR43bnB`#9I z#7|UcDE@jqK>{Rt1I template::MadaraSiteData { + let data: template::MadaraSiteData = template::MadaraSiteData { + base_url: String::from("https://www.mangaread.org"), + lang: String::from("fr"), + description_selector: String::from("div.manga-excerpt p"), + alt_ajax: true, + ..Default::default() + }; + data +} + +#[get_manga_list] +fn get_manga_list(filters: Vec, page: i32) -> Result { + template::get_manga_list(filters, page, get_data()) +} + +#[get_manga_listing] +fn get_manga_listing(listing: Listing, page: i32) -> Result { + template::get_manga_listing(get_data(), listing, page) +} + +#[get_manga_details] +fn get_manga_details(id: String) -> Result { + template::get_manga_details(id, get_data()) +} + +#[get_chapter_list] +fn get_chapter_list(id: String) -> Result> { + template::get_chapter_list(id, get_data()) +} + +#[get_page_list] +fn get_page_list(_manga_id: String, chapter_id: String) -> Result> { + template::get_page_list(chapter_id, get_data()) +} + +#[handle_url] +pub fn handle_url(url: String) -> Result { + template::handle_url(url, get_data()) +} From be8ace6cfd8952d43b0693f151cf7cdd31197753 Mon Sep 17 00:00:00 2001 From: MozkaGit <43102748+MozkaGit@users.noreply.github.com> Date: Mon, 11 Sep 2023 18:41:00 +0200 Subject: [PATCH 2/4] Remove slash from url Co-authored-by: Skitty --- src/rust/madara/sources/mangaread/res/source.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust/madara/sources/mangaread/res/source.json b/src/rust/madara/sources/mangaread/res/source.json index b6c5be595..94b6717a8 100644 --- a/src/rust/madara/sources/mangaread/res/source.json +++ b/src/rust/madara/sources/mangaread/res/source.json @@ -4,7 +4,7 @@ "lang": "en", "name": "Manga Read", "version": 1, - "url": "https://www.mangaread.org/", + "url": "https://www.mangaread.org", "nsfw": 1 }, "listings": [ From e9963a81a130e5ccfa94a01aadc73bd880ccb31c Mon Sep 17 00:00:00 2001 From: MozkaGit <43102748+MozkaGit@users.noreply.github.com> Date: Mon, 11 Sep 2023 18:46:59 +0200 Subject: [PATCH 3/4] Change id and name Co-authored-by: Skitty --- src/rust/madara/sources/mangaread/res/source.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rust/madara/sources/mangaread/res/source.json b/src/rust/madara/sources/mangaread/res/source.json index 94b6717a8..f4a896fab 100644 --- a/src/rust/madara/sources/mangaread/res/source.json +++ b/src/rust/madara/sources/mangaread/res/source.json @@ -1,8 +1,8 @@ { "info": { - "id": "en.mangaread", + "id": "en.mangareadorg", "lang": "en", - "name": "Manga Read", + "name": "MangaRead.org", "version": 1, "url": "https://www.mangaread.org", "nsfw": 1 From a99245c28c000c8d387f40bfe6be167bc38c0093 Mon Sep 17 00:00:00 2001 From: Skitty Date: Mon, 11 Sep 2023 11:54:19 -0500 Subject: [PATCH 4/4] Add newline to filters.json --- src/rust/madara/sources/mangaread/res/filters.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust/madara/sources/mangaread/res/filters.json b/src/rust/madara/sources/mangaread/res/filters.json index 53e7abad7..f78778410 100644 --- a/src/rust/madara/sources/mangaread/res/filters.json +++ b/src/rust/madara/sources/mangaread/res/filters.json @@ -312,4 +312,4 @@ } ] } -] \ No newline at end of file +]