Skip to content

Commit

Permalink
Merge pull request #27 from shazamio/fix_recognize_bytes
Browse files Browse the repository at this point in the history
Fix recognize bytes
  • Loading branch information
dotX12 authored Feb 4, 2025
2 parents 9dc136d + d87e434 commit 137b1d8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shazamio-core"
version = "1.1.1"
version = "1.1.2"
edition = "2021"
rust-version = "1.62"

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "shazamio_core"
version = "1.1.1"
version = "1.1.2"
description = ""
authors = ["dotX12 <[email protected]>"]
readme = "README.md"
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ impl Recognizer {
fn recognize_bytes(
&self,
py: Python,
bytes: Vec<u8>,
value: Vec<u8>,
options: Option<SearchParams>,
) -> PyResult<PyObject> {
debug!(
"recognize_bytes method called with bytes len: {} and options: {:?}",
bytes.len(),
value.len(),
options,
);

Expand All @@ -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);
Expand Down

0 comments on commit 137b1d8

Please sign in to comment.