style: auto-fix linting issues
This commit is contained in:
parent
782e98061b
commit
0652aa4866
5 changed files with 35 additions and 19 deletions
32
index.html
32
index.html
|
|
@ -4197,7 +4197,9 @@
|
||||||
<!-- AutoEQ Controls -->
|
<!-- AutoEQ Controls -->
|
||||||
<div class="autoeq-controls-section">
|
<div class="autoeq-controls-section">
|
||||||
<div class="autoeq-control-group">
|
<div class="autoeq-control-group">
|
||||||
<label class="autoeq-control-label" for="autoeq-headphone-select">HEADPHONE MODEL</label>
|
<label class="autoeq-control-label" for="autoeq-headphone-select"
|
||||||
|
>HEADPHONE MODEL</label
|
||||||
|
>
|
||||||
<div class="autoeq-select-wrapper">
|
<div class="autoeq-select-wrapper">
|
||||||
<select id="autoeq-headphone-select" aria-label="Headphone model">
|
<select id="autoeq-headphone-select" aria-label="Headphone model">
|
||||||
<option value="">Select a headphone...</option>
|
<option value="">Select a headphone...</option>
|
||||||
|
|
@ -4258,7 +4260,9 @@
|
||||||
|
|
||||||
<div class="autoeq-controls-row">
|
<div class="autoeq-controls-row">
|
||||||
<div class="autoeq-control-mini">
|
<div class="autoeq-control-mini">
|
||||||
<label class="autoeq-control-label" for="autoeq-band-count">FILTER BANDS</label>
|
<label class="autoeq-control-label" for="autoeq-band-count"
|
||||||
|
>FILTER BANDS</label
|
||||||
|
>
|
||||||
<select id="autoeq-band-count" aria-label="Filter bands">
|
<select id="autoeq-band-count" aria-label="Filter bands">
|
||||||
<option value="5">5</option>
|
<option value="5">5</option>
|
||||||
<option value="10" selected>10</option>
|
<option value="10" selected>10</option>
|
||||||
|
|
@ -4279,7 +4283,9 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="autoeq-control-mini">
|
<div class="autoeq-control-mini">
|
||||||
<label class="autoeq-control-label" for="autoeq-sample-rate">SAMPLE RATE</label>
|
<label class="autoeq-control-label" for="autoeq-sample-rate"
|
||||||
|
>SAMPLE RATE</label
|
||||||
|
>
|
||||||
<select id="autoeq-sample-rate" aria-label="Sample rate">
|
<select id="autoeq-sample-rate" aria-label="Sample rate">
|
||||||
<option value="44100">44.1k</option>
|
<option value="44100">44.1k</option>
|
||||||
<option value="48000" selected>48k</option>
|
<option value="48000" selected>48k</option>
|
||||||
|
|
@ -4298,7 +4304,12 @@
|
||||||
<use svg="!lucide/download.svg" size="20" />
|
<use svg="!lucide/download.svg" size="20" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<span id="autoeq-status" class="autoeq-status" role="status" aria-live="polite"></span>
|
<span
|
||||||
|
id="autoeq-status"
|
||||||
|
class="autoeq-status"
|
||||||
|
role="status"
|
||||||
|
aria-live="polite"
|
||||||
|
></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Saved Profiles -->
|
<!-- Saved Profiles -->
|
||||||
|
|
@ -4526,7 +4537,12 @@
|
||||||
>
|
>
|
||||||
Measure All
|
Measure All
|
||||||
</button>
|
</button>
|
||||||
<span id="speaker-eq-status" class="autoeq-status" role="status" aria-live="polite"></span>
|
<span
|
||||||
|
id="speaker-eq-status"
|
||||||
|
class="autoeq-status"
|
||||||
|
role="status"
|
||||||
|
aria-live="polite"
|
||||||
|
></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -4606,7 +4622,11 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Saved Profiles for Parametric EQ -->
|
<!-- Saved Profiles for Parametric EQ -->
|
||||||
<div class="autoeq-parametric-profiles" id="autoeq-parametric-profiles" style="display: none">
|
<div
|
||||||
|
class="autoeq-parametric-profiles"
|
||||||
|
id="autoeq-parametric-profiles"
|
||||||
|
style="display: none"
|
||||||
|
>
|
||||||
<div class="autoeq-saved-header">
|
<div class="autoeq-saved-header">
|
||||||
<div class="autoeq-saved-header-left">
|
<div class="autoeq-saved-header-left">
|
||||||
<span class="autoeq-saved-title">SAVED PROFILES</span>
|
<span class="autoeq-saved-title">SAVED PROFILES</span>
|
||||||
|
|
|
||||||
|
|
@ -1885,13 +1885,7 @@ export class LosslessAPI {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isVideo) {
|
if (!isVideo) {
|
||||||
blob = await applyAudioPostProcessing(
|
blob = await applyAudioPostProcessing(blob, quality, onProgress, options.signal, postProcessingQuality);
|
||||||
blob,
|
|
||||||
quality,
|
|
||||||
onProgress,
|
|
||||||
options.signal,
|
|
||||||
postProcessingQuality
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add metadata if track information is provided
|
// Add metadata if track information is provided
|
||||||
|
|
|
||||||
|
|
@ -1570,9 +1570,7 @@ export async function initializeSettings(scrobbler, player, api, ui) {
|
||||||
|
|
||||||
// Draw Original measurement (normalized + shifted)
|
// Draw Original measurement (normalized + shifted)
|
||||||
if (graphMeasurement) {
|
if (graphMeasurement) {
|
||||||
const normOff = targetData
|
const normOff = targetData ? getNormalizationOffset(graphMeasurement, targetData) : 0;
|
||||||
? getNormalizationOffset(graphMeasurement, targetData)
|
|
||||||
: 0;
|
|
||||||
const normalized = graphMeasurement.map((p) => ({ freq: p.freq, gain: p.gain + normOff + graphShift }));
|
const normalized = graphMeasurement.map((p) => ({ freq: p.freq, gain: p.gain + normOff + graphShift }));
|
||||||
drawCurve(normalized, originalColor, 1.5);
|
drawCurve(normalized, originalColor, 1.5);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1299,7 +1299,11 @@ export const equalizerSettings = {
|
||||||
|
|
||||||
setCustomFrequencies(frequencies) {
|
setCustomFrequencies(frequencies) {
|
||||||
try {
|
try {
|
||||||
if (Array.isArray(frequencies) && frequencies.length >= this.MIN_BANDS && frequencies.length <= this.MAX_BANDS) {
|
if (
|
||||||
|
Array.isArray(frequencies) &&
|
||||||
|
frequencies.length >= this.MIN_BANDS &&
|
||||||
|
frequencies.length <= this.MAX_BANDS
|
||||||
|
) {
|
||||||
localStorage.setItem(this.CUSTOM_FREQUENCIES_KEY, JSON.stringify(frequencies));
|
localStorage.setItem(this.CUSTOM_FREQUENCIES_KEY, JSON.stringify(frequencies));
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue