mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-09 22:08:04 -05:00
Add GetSimplePlaylist wrapper
This commit is contained in:
@@ -318,3 +318,7 @@ func TransferPlayback(deviceId spotify.ID) error {
|
|||||||
err = Client.PauseOpt(ctx(), &spotify.PlayOptions{DeviceID: &s.Device.ID})
|
err = Client.PauseOpt(ctx(), &spotify.PlayOptions{DeviceID: &s.Device.ID})
|
||||||
return Client.TransferPlayback(ctx(), deviceId, true)
|
return Client.TransferPlayback(ctx(), deviceId, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetSimplePlaylist(id *spotify.ID) (*spotify.FullPlaylist, error) {
|
||||||
|
return Client.GetPlaylist(ctx(), *id)
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user