Skip to content

Commit

Permalink
Add "Latest" Listing
Browse files Browse the repository at this point in the history
  • Loading branch information
getBoolean committed Sep 8, 2023
1 parent 9a6a401 commit 801a2fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rust/en.mangairo/res/source.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
},
"languages": [],
"listings": [
{
"name": "Latest"
},
{
"name": "New Releases"
},
Expand Down
1 change: 1 addition & 0 deletions src/rust/en.mangairo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ fn get_manga_details(manga_id: String) -> Result<Manga> {
#[get_manga_listing]
fn get_manga_listing(listing: Listing, page: i32) -> Result<MangaPageResult> {
let url = match listing.name.as_str() {
"Latest" => format!("{BASE_URL}/manga-list/type-latest/ctg-all/state-all/page-{page}"),
"New Releases" => format!("{BASE_URL}/manga-list/type-newest/ctg-7/state-all/page-{page}"),
"Hot" => format!("{BASE_URL}/manga-list/type-topview/ctg-all/state-all/page-{page}"),
"Completed" => {
Expand Down

0 comments on commit 801a2fa

Please sign in to comment.