fix: apply fix from eslint

This commit is contained in:
JellyBrick
2025-07-10 14:14:43 +09:00
parent 2cfc38757a
commit 1da83ff27c
29 changed files with 1654 additions and 168 deletions

View File

@ -39,7 +39,10 @@ import type { GetPlayerResponse } from '@/types/get-player-response';
import type { FormatOptions } from 'node_modules/youtubei.js/dist/src/types';
import type { VideoInfo } from 'node_modules/youtubei.js/dist/src/parser/youtube';
import type { PlayerErrorMessage } from 'node_modules/youtubei.js/dist/src/parser/nodes';
import type { TrackInfo, Playlist } from 'node_modules/youtubei.js/dist/src/parser/ytmusic';
import type {
TrackInfo,
Playlist,
} from 'node_modules/youtubei.js/dist/src/parser/ytmusic';
type CustomSongInfo = SongInfo & { trackId?: string };

View File

@ -38,7 +38,7 @@ export const onMenu = async ({
...deepmerge(
defaultConfig.downloadOnFinish,
config.downloadOnFinish,
)!,
),
enabled: item.checked,
},
});
@ -62,7 +62,7 @@ export const onMenu = async ({
...deepmerge(
defaultConfig.downloadOnFinish,
config.downloadOnFinish,
)!,
),
folder: result[0],
},
});
@ -87,7 +87,7 @@ export const onMenu = async ({
...deepmerge(
defaultConfig.downloadOnFinish,
config.downloadOnFinish,
)!,
),
mode: 'seconds',
},
});
@ -105,7 +105,7 @@ export const onMenu = async ({
...deepmerge(
defaultConfig.downloadOnFinish,
config.downloadOnFinish,
)!,
),
mode: 'percent',
},
});
@ -168,7 +168,7 @@ export const onMenu = async ({
...deepmerge(
defaultConfig.downloadOnFinish,
config.downloadOnFinish,
)!,
),
seconds: Number(res[0]),
percent: Number(res[1]),
},