feat: prepare adding songs

This commit is contained in:
2026-09-01 09:33:05 +02:00
parent 72dada18eb
commit f3d9251eee
18 changed files with 186 additions and 7 deletions
+7 -1
View File
@@ -3,6 +3,9 @@ import type {
PlayerSourcePlugin,
PlayerSourcePluginInitializer
} from '../interface';
import {
addFromAppleMusic
} from './search';
import {
musicKitPlayback
} from './playback';
@@ -49,7 +52,10 @@ export const useMusicKit: PlayerSourcePluginInitializer = ( storefront: string =
'seekTo': controls.seekTo,
'login': login,
// TODO: Implement
'addSongsFromThisSource': async () => []
'addSongsFromThisSource': async () => await addFromAppleMusic(),
'loading': {
'requiresLocalFiles': false
}
};
} else {
throw new Error( 'ERR_AUTH' );