Skip to content

Commit

Permalink
utils: media count refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
kingwingfly committed Feb 24, 2024
1 parent 3be2143 commit 87f9127
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
-->

## [Unreleased]
## [0.2.4] - 2024-02-24
- Fix: media count not refresh after fetching.

## [0.2.3] - 2024-02-24
- TryFix: panic when `base_url` not exist.

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 @@ -12,7 +12,7 @@ resolver = "2"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[workspace.package]
version = "0.2.3"
version = "0.2.4"
authors = ["Louis <[email protected]>"]
description = "Back up your favorite online resources with CLI."
license = "MIT"
Expand All @@ -23,7 +23,7 @@ documentation = ""
[workspace.dependencies]
fav_core = { path = "fav_core", version = "0.0.1-beta5" }
fav_derive = { path = "fav_derive", version = "0.0.1-beta1" }
fav_utils = { path = "fav_utils", version = "0.0.1-beta3" }
fav_utils = { path = "fav_utils", version = "0.0.1-beta4" }
fav_cli = { path = "fav_cli" }
fav_utils_old = { path = "fav_utils_old" }

Expand Down
2 changes: 1 addition & 1 deletion fav_utils/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fav_utils"
version = "0.0.1-beta3"
version = "0.0.1-beta4"
authors.workspace = true
description = "Fav's utils crate; A collection of utilities and data structures for the fav project"
license.workspace = true
Expand Down
5 changes: 4 additions & 1 deletion fav_utils/src/bili/res.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ impl BitOrAssign for BiliSets {
rhs.list
.into_iter()
.for_each(|s| match self.iter_mut().find(|s1| s1.id == s.id) {
Some(s1) => *s1 |= s,
Some(s1) => {
s1.media_count = s.media_count;
*s1 |= s
},
None => cache.push(s),
});
self.list.extend(cache);
Expand Down

0 comments on commit 87f9127

Please sign in to comment.