artifacts: mixxx: load the real mixxxdb

This commit is contained in:
2026-06-23 09:19:28 +02:00
parent 03d2cdf500
commit 0d270e80b3
+1 -1
View File
@@ -35,7 +35,7 @@ impl DataSource for MixxxDB {
let mut ret = vec![]; let mut ret = vec![];
let playlist_name = args.playlist_name.as_str(); let playlist_name = args.playlist_name.as_str();
log::info!("Loading Mixxx playlist {}", playlist_name); log::info!("Loading Mixxx playlist {}", playlist_name);
let connection = sqlite::Connection::open_thread_safe_with_flags("mixxxdb.sqlite", OpenFlags::new().with_read_only())?; let connection = sqlite::Connection::open_thread_safe_with_flags("/home/tdfischer/.mixxx/mixxxdb.sqlite", OpenFlags::new().with_read_only())?;
let query = "SELECT id FROM Playlists WHERE name = ? ORDER BY id DESC LIMIT 1"; let query = "SELECT id FROM Playlists WHERE name = ? ORDER BY id DESC LIMIT 1";
let mut statement = connection.prepare(query)?; let mut statement = connection.prepare(query)?;
statement.bind((1, playlist_name))?; statement.bind((1, playlist_name))?;