Skip to content

Commit

Permalink
fix: pull res_id forcely
Browse files Browse the repository at this point in the history
  • Loading branch information
kingwingfly committed Aug 20, 2024
1 parent e73871f commit 00cda56
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <res_id>` will now forcely pull the resource.

## [0.2.31] - 2024-08-18

- improve: `pull` will check ffmpeg before running.
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
description = "Back up your favorite online resources with CLI."
license = "MIT"
Expand All @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions fav_cli/src/bili/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,7 @@ pub(super) async fn pull(sets: &mut BiliSets, ids: Vec<String>) -> 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())
});
Expand Down

0 comments on commit 00cda56

Please sign in to comment.