artifacts: mixxx: load the real mixxxdb
This commit is contained in:
@@ -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))?;
|
||||||
|
|||||||
Reference in New Issue
Block a user