diff --git a/CHANGELOG.md b/CHANGELOG.md index a15171b..c577fd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +# 0.8.5 (2023-09-4) [#74](https://github.com/TuTarea/vinted-rs/pull/74/) + +## Improved + +- Removed static client +- Improved shared cookies between wrappers + # 0.8.5 (2023-09-3) [#72](https://github.com/TuTarea/vinted-rs/pull/72/) ## Improved diff --git a/Cargo.toml b/Cargo.toml index 241a531..6b3a509 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vinted-rs" -version = "0.8.5" +version = "0.8.6" edition = "2021" repository = "https://github.com/TuTarea/vinted-rs" authors = [ diff --git a/src/queries.rs b/src/queries.rs index b5b75ec..7476183 100644 --- a/src/queries.rs +++ b/src/queries.rs @@ -572,14 +572,14 @@ impl<'a> VintedWrapper<'a> { let domain: &str = &format!("vinted.{}", self.host); - let cookie_valid; + let cookie_not_valid; { let cookie_store_clone = COOKIE_STORE.lock().unwrap(); - cookie_valid = cookie_store_clone.get(domain, "/", "__cf_bm").is_none(); + cookie_not_valid = cookie_store_clone.get(domain, "/", "__cf_bm").is_none(); } - if cookie_valid { + if cookie_not_valid { debug!( "[{}] POST_GET_COOKIES -> Get {} items @ {}", self.id, num, self.host @@ -734,14 +734,14 @@ impl<'a> VintedWrapper<'a> { let domain: &str = &format!("vinted.{}", self.host); - let cookie_valid; + let cookie_not_valid; { let cookie_store_clone = COOKIE_STORE.lock().unwrap(); - cookie_valid = cookie_store_clone.get(domain, "/", "__cf_bm").is_none(); + cookie_not_valid = cookie_store_clone.get(domain, "/", "__cf_bm").is_none(); } - if cookie_valid { + if cookie_not_valid { debug!( "[{}] POST_GET_COOKIES -> Get item {} @ {}", self.id, item_id, self.host