Add GetSimplePlaylist wrapper

This commit is contained in:
aditya-K2
2023-04-16 06:18:43 +05:30
parent d5d9bbebff
commit 20747b1a51

View File

@@ -318,3 +318,7 @@ func TransferPlayback(deviceId spotify.ID) error {
err = Client.PauseOpt(ctx(), &spotify.PlayOptions{DeviceID: &s.Device.ID})
return Client.TransferPlayback(ctx(), deviceId, true)
}
func GetSimplePlaylist(id *spotify.ID) (*spotify.FullPlaylist, error) {
return Client.GetPlaylist(ctx(), *id)
}