Skip to content

Commit ef1b452

Browse files
authored
Merge pull request #75 from TuTarea/develop
Develop
2 parents 6e02fe6 + ecb7bf1 commit ef1b452

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
# 0.8.5 (2023-09-4) [#74](https://github.com/TuTarea/vinted-rs/pull/74/)
4+
5+
## Improved
6+
7+
- Removed static client
8+
- Improved shared cookies between wrappers
9+
310
# 0.8.5 (2023-09-3) [#72](https://github.com/TuTarea/vinted-rs/pull/72/)
411

512
## Improved

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "vinted-rs"
3-
version = "0.8.5"
3+
version = "0.8.6"
44
edition = "2021"
55
repository = "https://github.com/TuTarea/vinted-rs"
66
authors = [

src/queries.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -572,14 +572,14 @@ impl<'a> VintedWrapper<'a> {
572572

573573
let domain: &str = &format!("vinted.{}", self.host);
574574

575-
let cookie_valid;
575+
let cookie_not_valid;
576576

577577
{
578578
let cookie_store_clone = COOKIE_STORE.lock().unwrap();
579-
cookie_valid = cookie_store_clone.get(domain, "/", "__cf_bm").is_none();
579+
cookie_not_valid = cookie_store_clone.get(domain, "/", "__cf_bm").is_none();
580580
}
581581

582-
if cookie_valid {
582+
if cookie_not_valid {
583583
debug!(
584584
"[{}] POST_GET_COOKIES -> Get {} items @ {}",
585585
self.id, num, self.host
@@ -734,14 +734,14 @@ impl<'a> VintedWrapper<'a> {
734734

735735
let domain: &str = &format!("vinted.{}", self.host);
736736

737-
let cookie_valid;
737+
let cookie_not_valid;
738738

739739
{
740740
let cookie_store_clone = COOKIE_STORE.lock().unwrap();
741-
cookie_valid = cookie_store_clone.get(domain, "/", "__cf_bm").is_none();
741+
cookie_not_valid = cookie_store_clone.get(domain, "/", "__cf_bm").is_none();
742742
}
743743

744-
if cookie_valid {
744+
if cookie_not_valid {
745745
debug!(
746746
"[{}] POST_GET_COOKIES -> Get item {} @ {}",
747747
self.id, item_id, self.host

0 commit comments

Comments
 (0)