mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-14 11:51:47 +00:00
feat(api-server): add insertPosition for addSongToQueue (#2808)
This commit is contained in:
@ -97,11 +97,15 @@ export default (win: BrowserWindow) => {
|
||||
});
|
||||
},
|
||||
// Queue
|
||||
addSongToQueue: (videoId: string) => {
|
||||
addSongToQueue: (videoId: string, queueInsertPosition: string) => {
|
||||
const videoIdValue = parseStringFromArgsType(videoId);
|
||||
if (videoIdValue === null) return;
|
||||
|
||||
win.webContents.send('ytmd:add-to-queue', videoIdValue);
|
||||
win.webContents.send(
|
||||
'ytmd:add-to-queue',
|
||||
videoIdValue,
|
||||
queueInsertPosition,
|
||||
);
|
||||
},
|
||||
moveSongInQueue: (
|
||||
fromIndex: ArgsType<number>,
|
||||
|
||||
Reference in New Issue
Block a user