From 980d3cb05b43d37fb6aea25cf7bc50bbbd460581 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 2 Jul 2024 15:23:36 -0700 Subject: [PATCH] no more cookie --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 775846a..9fc9f17 100644 --- a/src/main.rs +++ b/src/main.rs @@ -495,8 +495,8 @@ async fn upload_place(config:UploadPlaceConfig)->AResult<()>{ Ok(()) } -async fn download_list(cookie:String,asset_id_file_map:AssetIDFileMap)->AResult<()>{ - let context=RobloxContext::new(cookie); +async fn download_list(api_key:String,asset_id_file_map:AssetIDFileMap)->AResult<()>{ + let context=RobloxContext::new(api_key); futures::stream::iter(asset_id_file_map.into_iter() .map(|(asset_id,file)|{ let context=&context; @@ -533,8 +533,8 @@ async fn get_inventory_pages(context:&RobloxContext,group:u64)->AResultAResult<()>{ - let context=RobloxContext::new(cookie); +async fn download_group_inventory_json(api_key:String,group:u64,output_folder:PathBuf)->AResult<()>{ + let context=RobloxContext::new(api_key); let item_list=get_inventory_pages(&context,group).await?; let mut path=output_folder.clone();