Merge branch 'main' of github.com:thallada/modmapper into main

This commit is contained in:
Tyler Hallada 2022-09-27 12:19:10 -04:00
commit 662bd7e355

View File

@ -71,11 +71,11 @@ impl ModListResponse {
let last_update_date_select =
Selector::parse("div.date").expect("failed to parse CSS selector");
let next_page_select =
Selector::parse("div.pagination li.next").expect("failed to parse CSS selector");
Selector::parse("div.pagination li:last-child a.page-selected").expect("failed to parse CSS selector");
let next_page_elem = self.html.select(&next_page_select).next();
let has_next_page = next_page_elem.is_some();
let has_next_page = next_page_elem.is_none();
let mods: Vec<ScrapedMod> = self
.html