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

Configure Feed

Select the types of activity you want to include in your feed.

Avoid logging full playback JSON on normal responses

Only print the "Currently playing" response when the returned data does
not contain both "is_playing" and "context", reducing noisy output for
normal playback responses

+3 -1
+3 -1
crates/spotify/src/lib.rs
··· 363 363 let status = response.status().as_u16(); 364 364 let data = response.text().await?; 365 365 366 - println!("> Currently playing: {}", data); 366 + if !data.contains("is_playing") && !data.contains("context") { 367 + println!("> Currently playing: {}", data); 368 + } 367 369 368 370 if status == 429 { 369 371 println!(