Skip to content

Commit

Permalink
Nettruyen changed domain again
Browse files Browse the repository at this point in the history
  • Loading branch information
KNN-07 committed Sep 3, 2023
1 parent 726ac6c commit 2803277
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/rust/wpcomics/sources/nettruyen/res/source.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"id": "vi.nettruyen",
"lang": "vi",
"name": "NetTruyen",
"version": 7,
"url": "https://www.nettruyenmax.com",
"version": 8,
"url": "https://www.nettruyenus.com",
"nsfw": 1
},
"listings": [
Expand All @@ -18,4 +18,4 @@
"name": "Truyện con trai"
}
]
}
}
4 changes: 2 additions & 2 deletions src/rust/wpcomics/sources/nettruyen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use wpcomics_template::{helper::urlencode, template, template::WPComicsSource};

fn get_instance() -> WPComicsSource {
WPComicsSource {
base_url: String::from("https://www.nettruyenmax.com"),
base_url: String::from("https://www.nettruyenus.com"),
next_page: "li.active + li > a[title*=\"kết quả\"]",
viewer: MangaViewer::Rtl,
listing_mapping: |listing| {
Expand Down Expand Up @@ -145,7 +145,7 @@ fn get_page_list(_manga_id: String, chapter_id: String) -> Result<Vec<Page>> {
#[modify_image_request]
fn modify_image_request(request: Request) {
template::modify_image_request(
String::from("https://www.nettruyenmax.com"),
String::from("https://www.nettruyenus.com"),
String::from("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36 Edg/101.0.1210.39"),
request,
)
Expand Down

0 comments on commit 2803277

Please sign in to comment.