Added new rom import system utilizing WAL to avoid locking the database and freezing the frontend
Also added new logging setup to hopefully stream the scrape process
This commit is contained in:
@@ -1305,22 +1305,22 @@ async function loadConfiguration() {
|
||||
|
||||
function populateConfigForm(config) {
|
||||
// Populate form fields
|
||||
document.getElementById('config-host').value = config.host || '';
|
||||
document.getElementById('config-port').value = config.port || '';
|
||||
document.getElementById('config-rom-path').value = config.game_path || '';
|
||||
document.getElementById('config-images-path').value = config.images_path || '';
|
||||
document.getElementById('config-igdb-client-id').value = config.igdb_client_id || '';
|
||||
document.getElementById('config-igdb-secret').value = config.igdb_api_key || '';
|
||||
document.getElementById('config-host').value = config.config?.host || config.host || '';
|
||||
document.getElementById('config-port').value = config.config?.port || config.port || '';
|
||||
document.getElementById('config-rom-path').value = config.config?.rom_path || config.rom_path || '';
|
||||
document.getElementById('config-images-path').value = config.config?.images_path || config.images_path || '';
|
||||
document.getElementById('config-igdb-client-id').value = config.config?.igdb_client_id || config.igdb_client_id || '';
|
||||
document.getElementById('config-igdb-secret').value = config.config?.igdb_api_key || config.igdb_api_key || '';
|
||||
|
||||
// Populate JSON editor
|
||||
document.getElementById('config-json').value = JSON.stringify(config, null, 2);
|
||||
document.getElementById('config-json').value = JSON.stringify(config.config || config, null, 2);
|
||||
}
|
||||
|
||||
function collectConfigFromForm() {
|
||||
const config = {
|
||||
host: document.getElementById('config-host').value,
|
||||
port: parseInt(document.getElementById('config-port').value) || 8080,
|
||||
game_path: document.getElementById('config-rom-path').value,
|
||||
rom_path: document.getElementById('config-rom-path').value,
|
||||
images_path: document.getElementById('config-images-path').value,
|
||||
igdb_client_id: document.getElementById('config-igdb-client-id').value,
|
||||
igdb_api_key: document.getElementById('config-igdb-secret').value
|
||||
|
||||
Reference in New Issue
Block a user