diff --git a/crates/scrobbler/src/scrobbler.rs b/crates/scrobbler/src/scrobbler.rs index aee9578d..83de297b 100644 --- a/crates/scrobbler/src/scrobbler.rs +++ b/crates/scrobbler/src/scrobbler.rs @@ -208,12 +208,14 @@ pub async fn scrobble( let result = retry_spotify_call( || async { - spotify_client - .search(&format!( + tokio::time::timeout( + std::time::Duration::from_secs(5), + spotify_client.search(&format!( r#"track:"{}" artist:"{}""#, scrobble.track, scrobble.artist - )) - .await + )), + ) + .await? }, "search", )