From 8cf0367eb19b95f836acac25473c2eccdd129ac5 Mon Sep 17 00:00:00 2001 From: Julio Reigen Date: Wed, 4 Oct 2023 12:18:19 -0300 Subject: [PATCH] add source: prismascans (#468) * feat(madara): add source flowermanga * feat(madara): add source prismascans * feat: remove flowermanga(duplicate PR) * Update src/rust/madara/sources/prismascans/res/filters.json Co-authored-by: Skitty * Update src/rust/madara/sources/prismascans/res/source.json Co-authored-by: Skitty * Update src/rust/madara/sources/prismascans/res/source.json Co-authored-by: Skitty * Update src/rust/madara/sources/prismascans/src/lib.rs Co-authored-by: Skitty * Update src/rust/madara/sources/prismascans/res/Icon.png --------- Co-authored-by: Skitty --- .../madara/sources/prismascans/Cargo.toml | 12 ++ .../madara/sources/prismascans/res/Icon.png | Bin 0 -> 3472 bytes .../sources/prismascans/res/filters.json | 203 ++++++++++++++++++ .../sources/prismascans/res/settings.json | 16 ++ .../sources/prismascans/res/source.json | 10 + .../madara/sources/prismascans/src/lib.rs | 46 ++++ 6 files changed, 287 insertions(+) create mode 100644 src/rust/madara/sources/prismascans/Cargo.toml create mode 100644 src/rust/madara/sources/prismascans/res/Icon.png create mode 100644 src/rust/madara/sources/prismascans/res/filters.json create mode 100644 src/rust/madara/sources/prismascans/res/settings.json create mode 100644 src/rust/madara/sources/prismascans/res/source.json create mode 100644 src/rust/madara/sources/prismascans/src/lib.rs diff --git a/src/rust/madara/sources/prismascans/Cargo.toml b/src/rust/madara/sources/prismascans/Cargo.toml new file mode 100644 index 000000000..dbcf39e7c --- /dev/null +++ b/src/rust/madara/sources/prismascans/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "prismascans" +version = "0.1.0" +edition = "2021" +publish = false + +[lib] +crate-type = ["cdylib"] + +[dependencies] +aidoku = { git = "https://github.com/Aidoku/aidoku-rs/" } +madara_template = { path = "../../template" } diff --git a/src/rust/madara/sources/prismascans/res/Icon.png b/src/rust/madara/sources/prismascans/res/Icon.png new file mode 100644 index 0000000000000000000000000000000000000000..70688692f3b9a8b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Z@^9hR0w7ai$QAbZLhlf z1ToZV=#u&^BFAMF_%b2acp6m(*4>bc0YtidpdiSJ;=q6XM$TT2*W!)U((?iP;*Kx2IOrWYL==@AKF!+1cr4f+SO2f_&sB2 template::MadaraSiteData { + template::MadaraSiteData { + base_url: String::from("https://prismascans.net"), + description_selector: String::from("div.summary_content_wrap div p"), + alt_ajax: true, + ..Default::default() + } +} + +#[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()) +}