-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(demonsect): update name and url (#766)
* fix: update name and url * fix: listing * remove old demonsect source
- Loading branch information
1 parent
2a6f0fa
commit 5eb2ce4
Showing
8 changed files
with
58 additions
and
69 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#![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 { | ||
use_manga_postids: true, | ||
use_chapter_postids: true, | ||
base_url: String::from("https://seitacelestial.com"), | ||
traverse_pathname: "comics", | ||
alt_pages: true, | ||
..Default::default() | ||
} | ||
} | ||
|
||
#[get_manga_list] | ||
fn get_manga_list(filters: Vec<Filter>, page: i32) -> Result<MangaPageResult> { | ||
get_instance().parse_manga_list(filters, page) | ||
} | ||
|
||
#[get_manga_listing] | ||
fn get_manga_listing(listing: Listing, page: i32) -> Result<MangaPageResult> { | ||
get_instance().parse_manga_listing(get_instance().base_url, listing.name, page) | ||
} | ||
|
||
#[get_manga_details] | ||
fn get_manga_details(id: String) -> Result<Manga> { | ||
get_instance().parse_manga_details(id) | ||
} | ||
|
||
#[get_chapter_list] | ||
fn get_chapter_list(id: String) -> Result<Vec<Chapter>> { | ||
get_instance().parse_chapter_list(id) | ||
} | ||
|
||
#[get_page_list] | ||
fn get_page_list(_manga_id: String, id: String) -> Result<Vec<Page>> { | ||
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<DeepLink> { | ||
get_instance().handle_url(url) | ||
} |