A decentralized music tracking and discovery platform built on AT Protocol 🎵
0
fork

Configure Feed

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

Point Spotify clients to Rocksky proxy

Uncomment a previously disabled thread::spawn block in the spotify crate
to
restore the background runtime used for cache cleanup

+5 -5
+1 -1
crates/scrobbler/src/spotify/client.rs
··· 2 2 use anyhow::Error; 3 3 use std::time::Duration; 4 4 5 - pub const BASE_URL: &str = "https://api.spotify.com/v1"; 5 + pub const BASE_URL: &str = "https://spotify-api.rocksky.app/v1"; 6 6 7 7 pub struct SpotifyClient { 8 8 token: String,
+2 -3
crates/spotify/src/lib.rs
··· 30 30 pub mod token; 31 31 pub mod types; 32 32 33 - pub const BASE_URL: &str = "https://api.spotify.com/v1"; 33 + // pub const BASE_URL: &str = "https://api.spotify.com/v1"; 34 + pub const BASE_URL: &str = "https://spotify-api.rocksky.app/v1"; 34 35 35 36 pub async fn run() -> Result<(), Error> { 36 37 let cache = Cache::new()?; ··· 997 998 Err(_) => tracing::error!("Failed to delete cache entry"), 998 999 }; 999 1000 1000 - /* 1001 1001 thread::spawn(move || { 1002 1002 let rt = tokio::runtime::Runtime::new().unwrap(); 1003 1003 match rt.block_on(async { ··· 1038 1038 } 1039 1039 } 1040 1040 }); 1041 - */ 1042 1041 } 1043 1042 } 1044 1043 }
+2 -1
crates/webscrobbler/src/spotify/client.rs
··· 2 2 use anyhow::Error; 3 3 use std::time::Duration; 4 4 5 - pub const BASE_URL: &str = "https://api.spotify.com/v1"; 5 + // pub const BASE_URL: &str = "https://api.spotify.com/v1"; 6 + pub const BASE_URL: &str = "https://spotify-api.rocksky.app/v1"; 6 7 7 8 pub struct SpotifyClient { 8 9 token: String,