diff --git a/sources/multi.webtoon/res/source.json b/sources/multi.webtoon/res/source.json index 6d4db0ff4..259eebf98 100644 --- a/sources/multi.webtoon/res/source.json +++ b/sources/multi.webtoon/res/source.json @@ -2,7 +2,7 @@ "info": { "id": "multi.webtoon", "name": "WEBTOON", - "version": 4, + "version": 5, "urls": [ "https://www.webtoons.com", "https://m.webtoons.com" diff --git a/sources/multi.webtoon/src/parser.rs b/sources/multi.webtoon/src/parser.rs index eeff55eff..4787bf1fd 100644 --- a/sources/multi.webtoon/src/parser.rs +++ b/sources/multi.webtoon/src/parser.rs @@ -143,7 +143,7 @@ pub fn parse_manga_listing(listing: Listing, page: i32) -> Result parse_canvas_list( - &format!("{base_url}/canvas/list?genreTab=ALL&sortOrder=READ_COUNT"), + &format!("{base_url}/canvas/list?genreTab=ALL&sortOrder=MANA"), page, ), "canvas_top" => parse_canvas_list( @@ -224,7 +224,12 @@ pub fn parse_canvas_list(url: &str, page: i32) -> Result { if !seen.insert(id.clone()) { continue; } - let cover = node.select_first("img").and_then(|img| img.attr("src")); + let cover = node + .select_first("img") + .and_then(|img| img.attr("src")) + .unwrap_or_default() + .replace("?type=f164_164", ""); + let title = node .select_first(".subj") .and_then(|t| t.text()) @@ -238,7 +243,7 @@ pub fn parse_canvas_list(url: &str, page: i32) -> Result { entries.push(Manga { key: id, title, - cover, + cover: Some(cover), url: Some(full_url), viewer: Viewer::Webtoon, content_rating: ContentRating::Safe,