mirror of
https://github.com/janishutz/MusicPlayer.git
synced 2026-09-10 14:25:24 +02:00
feat: add songs via Apple Music
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import {
|
||||
addSongList,
|
||||
clearQueue,
|
||||
shuffleList
|
||||
} from './playlists/add';
|
||||
import {
|
||||
@@ -117,7 +118,7 @@ const getSources = (): string[] => {
|
||||
};
|
||||
|
||||
const addSongFromSource = async ( source: string ) => {
|
||||
addSongList( await sources[source]!.addSongsFromThisSource() );
|
||||
sources[source]!.addSongsFromThisSource( addSongList );
|
||||
};
|
||||
|
||||
export default {
|
||||
@@ -133,6 +134,7 @@ export default {
|
||||
addSongFromSource,
|
||||
next,
|
||||
prev,
|
||||
clearQueue,
|
||||
queue,
|
||||
queueIdx,
|
||||
duration,
|
||||
|
||||
Reference in New Issue
Block a user