diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-11-29 13:32:52 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-11-29 13:32:52 +0100 |
| commit | 5db15c323d76dca9ae71b0204d63dcb09fbbcbc5 (patch) | |
| tree | 4f69e58c9b6825b7b602712893950673abf9c286 /import/src/acoustid.rs | |
| parent | bac47e456085ea153ae6ae1b1e28e41868693c9c (diff) | |
| download | jellything-5db15c323d76dca9ae71b0204d63dcb09fbbcbc5.tar jellything-5db15c323d76dca9ae71b0204d63dcb09fbbcbc5.tar.bz2 jellything-5db15c323d76dca9ae71b0204d63dcb09fbbcbc5.tar.zst | |
remove asset token; db json
Diffstat (limited to 'import/src/acoustid.rs')
| -rw-r--r-- | import/src/acoustid.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/import/src/acoustid.rs b/import/src/acoustid.rs index a328146..c35708d 100644 --- a/import/src/acoustid.rs +++ b/import/src/acoustid.rs @@ -5,7 +5,6 @@ */ use crate::USER_AGENT; use anyhow::{Context, Result}; -use bincode::{Decode, Encode}; use jellycache::async_cache_memory; use log::info; use reqwest::{ @@ -39,18 +38,18 @@ pub(crate) struct FpCalcOutput { fingerprint: String, } -#[derive(Serialize, Deserialize, Encode, Decode)] +#[derive(Serialize, Deserialize)] pub(crate) struct AcoustIDLookupResultRecording { id: String, } -#[derive(Serialize, Deserialize, Encode, Decode)] +#[derive(Serialize, Deserialize)] pub(crate) struct AcoustIDLookupResult { id: String, score: f32, #[serde(default)] recordings: Vec<AcoustIDLookupResultRecording>, } -#[derive(Serialize, Deserialize, Encode, Decode)] +#[derive(Serialize, Deserialize)] pub(crate) struct AcoustIDLookupResponse { status: String, results: Vec<AcoustIDLookupResult>, |