mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-09-05 15:39:07 +08:00
feat: 修改各处定义,初步实现读取收藏夹功能
This commit is contained in:
+5
-2
@@ -10,8 +10,11 @@ async fn main() -> ! {
|
||||
let bili_client = Arc::new(BiliClient::new(None));
|
||||
loop {
|
||||
for fid in [52642258] {
|
||||
let _ = process_favorite(bili_client.clone(), fid, connection.clone()).await;
|
||||
let res = process_favorite(bili_client.clone(), fid, connection.clone()).await;
|
||||
if let Err(e) = res {
|
||||
eprintln!("Error: {:?}", e);
|
||||
}
|
||||
}
|
||||
tokio::time::sleep(std::time::Duration::from_secs(60)).await;
|
||||
tokio::time::sleep(std::time::Duration::from_secs(600)).await;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user