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