mirror of
https://github.com/janishutz/MusicPlayer.git
synced 2026-09-10 14:25:24 +02:00
feat: prepare adding songs
This commit is contained in:
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user