Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thelastfantasy committed Mar 1, 2022
1 parent 3cfb3bf commit 03e7e78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.filter(|e| regex!(r#"^RJ\d+$"#).is_match(e.file_stem().unwrap().to_str().unwrap()));
for e in entries {
let opath = e.display();
let fut = dlsite_req(e.file_stem().unwrap().to_str().unwrap());
let pid = e.file_stem().unwrap().to_str().unwrap();
let fut = dlsite_req(pid);
match fut.await {
Ok(fut) => {
let output = fut;
Expand All @@ -30,7 +31,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("{opath} =>发现匹配文件,开始重命名...\n{output}.{ext}");
}
Err(e) => {
eprintln!("已跳过:{opath} ,原因:{e}");
eprintln!("已跳过:{opath} ,原因:{pid} {e}");
continue;
}
}
Expand Down

0 comments on commit 03e7e78

Please sign in to comment.