feat: Audio Preview Player #14
@@ -175,6 +175,11 @@ async function doExtract() {
|
||||
try {
|
||||
const resp = await fetch(`${API}/extract?dir=${encodeURIComponent(isoDir)}&out=${encodeURIComponent(wavDir)}`);
|
||||
const data = await resp.json();
|
||||
if (data.error) {
|
||||
status.textContent = data.error;
|
||||
status.style.color = 'var(--accent)';
|
||||
return;
|
||||
}
|
||||
status.textContent = data.message || 'Extraction complete';
|
||||
status.style.color = 'var(--green)';
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user