From 00cda5698e47cd37e11c3198b184eba4ca1cbbe7 Mon Sep 17 00:00:00 2001 From: Louis <836250617@qq.com> Date: Wed, 21 Aug 2024 01:50:27 +0800 Subject: [PATCH] fix: pull res_id forcely --- CHANGELOG.md | 4 ++++ Cargo.lock | 4 ++-- Cargo.toml | 4 ++-- fav_cli/src/bili/action.rs | 3 +-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11a50eb..af3bae3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com --> ## [Unreleased] +## [0.2.32] - 2024-08-21 + +- fix: `fav pull ` will now forcely pull the resource. + ## [0.2.31] - 2024-08-18 - improve: `pull` will check ffmpeg before running. diff --git a/Cargo.lock b/Cargo.lock index bfc3e96..6baf018 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -365,7 +365,7 @@ checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" [[package]] name = "fav" -version = "0.2.31" +version = "0.2.32" dependencies = [ "fav_cli", "tokio", @@ -375,7 +375,7 @@ dependencies = [ [[package]] name = "fav_cli" -version = "0.2.31" +version = "0.2.32" dependencies = [ "chrono", "clap", diff --git a/Cargo.toml b/Cargo.toml index e7a5c2e..891bee5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ resolver = "2" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [workspace.package] -version = "0.2.31" +version = "0.2.32" authors = ["Louis <836250617@qq.com>"] description = "Back up your favorite online resources with CLI." license = "MIT" @@ -17,7 +17,7 @@ documentation = "" fav_core = { path = "fav_core", version = "0.1.4" } fav_derive = { path = "fav_derive", version = "0.0.2" } fav_utils = { path = "fav_utils", version = "0.0.13" } -fav_cli = { path = "fav_cli", version = "0.2.31" } +fav_cli = { path = "fav_cli", version = "0.2.32" } [profile.release] lto = "fat" diff --git a/fav_cli/src/bili/action.rs b/fav_cli/src/bili/action.rs index 23b423a..ce47585 100644 --- a/fav_cli/src/bili/action.rs +++ b/fav_cli/src/bili/action.rs @@ -184,8 +184,7 @@ pub(super) async fn pull(sets: &mut BiliSets, ids: Vec) -> FavCoreResult let mut sub = sets.subset(|s| s.check_status(StatusFlags::TRACK)); for set in sub.iter_mut() { let mut sub = set.subset(|r| { - !r.check_status(StatusFlags::SAVED) - & !r.check_status(StatusFlags::EXPIRED) + !r.check_status(StatusFlags::EXPIRED) & r.check_status(StatusFlags::TRACK | StatusFlags::FETCHED) & ids.contains(&r.id()) });