Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

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

Initialize Typesense before scanning library

Move rockbox_typesense::setup() into parse_args so Typesense is
initialized before creating the DB pool and running the initial
library scan

+2 -2
+2 -2
crates/cli/src/lib.rs
··· 146 146 let path = rockbox_settings::get_music_dir().unwrap_or(format!("{}/Music", home)); 147 147 let rt = tokio::runtime::Runtime::new().unwrap(); 148 148 rt.block_on(async { 149 + rockbox_typesense::setup()?; 150 + 149 151 let pool = create_connection_pool().await?; 150 152 let tracks = repo::track::all(pool.clone()).await?; 151 153 if tracks.is_empty() || update_library { ··· 245 247 }); 246 248 247 249 thread::spawn(move || { 248 - rockbox_typesense::setup()?; 249 - 250 250 let api_key = uuid::Uuid::new_v4().to_string(); 251 251 let api_key = std::env::var("RB_TYPESENSE_API_KEY").unwrap_or(api_key); 252 252 std::env::set_var("RB_TYPESENSE_API_KEY", &api_key);