From e69165fe5aa7d04778f181c5424ca9e5f4d586c2 Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Thu, 22 Jul 2021 21:55:31 -0400 Subject: [PATCH] Set page size to 20 since nexus mods doesn't always obey 80 --- src/nexus_scraper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nexus_scraper.rs b/src/nexus_scraper.rs index c86e99b..b8f58b9 100644 --- a/src/nexus_scraper.rs +++ b/src/nexus_scraper.rs @@ -25,7 +25,7 @@ pub struct ModListScrape<'a> { pub async fn get_mod_list_page(client: &Client, page: usize) -> Result { let res = client .get(format!( - "https://www.nexusmods.com/Core/Libs/Common/Widgets/ModList?RH_ModList=nav:true,home:false,type:0,user_id:0,game_id:{},advfilt:true,include_adult:true,page_size:80,show_game_filter:false,open:false,page:{},sort_by:OLD_u_downloads", + "https://www.nexusmods.com/Core/Libs/Common/Widgets/ModList?RH_ModList=nav:true,home:false,type:0,user_id:0,game_id:{},advfilt:true,include_adult:true,page_size:20,show_game_filter:false,open:false,page:{},sort_by:OLD_u_downloads", GAME_ID, page ))