From 9119101ff3fb163cab5d317dfabc4155a7a12896 Mon Sep 17 00:00:00 2001 From: dotX12 Date: Tue, 4 Feb 2025 05:59:08 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20fix(`src/lib.rs`):=20Correct?= =?UTF-8?q?=20variable=20name=20in=20`recognize=5Fbytes`=20method.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index eaea440..db18aa9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -50,12 +50,12 @@ impl Recognizer { fn recognize_bytes( &self, py: Python, - bytes: Vec, + value: Vec, options: Option, ) -> PyResult { debug!( "recognize_bytes method called with bytes len: {} and options: {:?}", - bytes.len(), + value.len(), options, ); @@ -70,7 +70,7 @@ impl Recognizer { let future = async move { debug!("Starting async recognition from bytes"); let data = SignatureGenerator::make_signature_from_bytes( - bytes, + value, Some(search_options.segment_duration_seconds), ).map_err(|e| { error!("Error in make_signature_from_bytes: {}", e); From d87e4342e6d4388a533bd799aedd3ca2d98b577e Mon Sep 17 00:00:00 2001 From: dotX12 Date: Tue, 4 Feb 2025 06:00:42 +0300 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=8C=20chore(`version`):=20Bump=20v?= =?UTF-8?q?ersion=20to=201.1.2.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 2 +- Cargo.toml | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1ac805a..b7f310b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1322,7 +1322,7 @@ dependencies = [ [[package]] name = "shazamio-core" -version = "1.1.1" +version = "1.1.2" dependencies = [ "base64", "blocking", diff --git a/Cargo.toml b/Cargo.toml index d491cf6..da1f54c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shazamio-core" -version = "1.1.1" +version = "1.1.2" edition = "2021" rust-version = "1.62" diff --git a/pyproject.toml b/pyproject.toml index b7ce266..5ece102 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "shazamio_core" -version = "1.1.1" +version = "1.1.2" description = "" authors = ["dotX12 "] readme = "README.md"