A decentralized music tracking and discovery platform built on AT Protocol 🎵 rocksky.app
spotify atproto lastfm musicbrainz scrobbling listenbrainz

Increase ListenBrainz cache timeout to 30s

+2 -2
+2 -2
crates/scrobbler/src/scrobbler.rs
··· 579 579 return Ok(()); 580 580 } 581 581 582 - // set cache for 5 seconds to avoid duplicate scrobbles 582 + // set cache for 60 seconds to avoid duplicate scrobbles 583 583 cache.setex( 584 584 &format!("listenbrainz:cache:{}:{}:{}", artist, track, did), 585 585 "1", 586 - 5, 586 + 30, // 30 seconds 587 587 )?; 588 588 589 589 let spofity_tokens = repo::spotify_token::get_spotify_tokens(pool, 100).await?;