mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-19 06:02:06 +00:00
fix: apply fix from eslint
This commit is contained in:
@ -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 };
|
||||
|
||||
|
||||
@ -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]),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user