style: auto-fix linting issues

This commit is contained in:
JulienMaille 2026-01-26 21:12:21 +00:00 committed by github-actions[bot]
parent 2e322ac8a6
commit 15c3702cae
4 changed files with 17 additions and 11 deletions

View file

@ -1,5 +1,11 @@
//js/api.js //js/api.js
import { RATE_LIMIT_ERROR_MESSAGE, deriveTrackQuality, delay, isTrackUnavailable, getExtensionFromBlob } from './utils.js'; import {
RATE_LIMIT_ERROR_MESSAGE,
deriveTrackQuality,
delay,
isTrackUnavailable,
getExtensionFromBlob,
} from './utils.js';
import { APICache } from './cache.js'; import { APICache } from './cache.js';
import { addMetadataToAudio } from './metadata.js'; import { addMetadataToAudio } from './metadata.js';
import { DashDownloader } from './dash-downloader.js'; import { DashDownloader } from './dash-downloader.js';

View file

@ -553,12 +553,12 @@ function createBulkDownloadNotification(type, name, _totalItems) {
type === 'album' type === 'album'
? 'Album' ? 'Album'
: type === 'playlist' : type === 'playlist'
? 'Playlist' ? 'Playlist'
: type === 'liked' : type === 'liked'
? 'Liked Tracks' ? 'Liked Tracks'
: type === 'queue' : type === 'queue'
? 'Queue' ? 'Queue'
: 'Discography'; : 'Discography';
notifEl.innerHTML = ` notifEl.innerHTML = `
<div style="display: flex; align-items: start; gap: 0.75rem;"> <div style="display: flex; align-items: start; gap: 0.75rem;">

View file

@ -25,7 +25,7 @@ export async function addMetadataToAudio(audioBlob, track, api, quality) {
view.getUint8(0) === 0x66 && // f view.getUint8(0) === 0x66 && // f
view.getUint8(1) === 0x4c && // L view.getUint8(1) === 0x4c && // L
view.getUint8(2) === 0x61 && // a view.getUint8(2) === 0x61 && // a
view.getUint8(3) === 0x43; // C view.getUint8(3) === 0x43; // C
if (isFlac) { if (isFlac) {
return await addFlacMetadata(audioBlob, track, api); return await addFlacMetadata(audioBlob, track, api);
@ -37,7 +37,7 @@ export async function addMetadataToAudio(audioBlob, track, api, quality) {
view.getUint8(4) === 0x66 && // f view.getUint8(4) === 0x66 && // f
view.getUint8(5) === 0x74 && // t view.getUint8(5) === 0x74 && // t
view.getUint8(6) === 0x79 && // y view.getUint8(6) === 0x79 && // y
view.getUint8(7) === 0x70; // p view.getUint8(7) === 0x70; // p
if (isMp4) { if (isMp4) {
return await addM4aMetadata(audioBlob, track, api); return await addM4aMetadata(audioBlob, track, api);

View file

@ -105,7 +105,7 @@ export const getExtensionFromBlob = async (blob) => {
view.getUint8(0) === 0x66 && // f view.getUint8(0) === 0x66 && // f
view.getUint8(1) === 0x4c && // L view.getUint8(1) === 0x4c && // L
view.getUint8(2) === 0x61 && // a view.getUint8(2) === 0x61 && // a
view.getUint8(3) === 0x43 // C view.getUint8(3) === 0x43 // C
) { ) {
return 'flac'; return 'flac';
} }
@ -116,7 +116,7 @@ export const getExtensionFromBlob = async (blob) => {
view.getUint8(4) === 0x66 && // f view.getUint8(4) === 0x66 && // f
view.getUint8(5) === 0x74 && // t view.getUint8(5) === 0x74 && // t
view.getUint8(6) === 0x79 && // y view.getUint8(6) === 0x79 && // y
view.getUint8(7) === 0x70 // p view.getUint8(7) === 0x70 // p
) { ) {
return 'm4a'; return 'm4a';
} }