mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-08 21:37:58 -05:00
Implement Progress Bar
This commit is contained in:
@@ -25,6 +25,8 @@ var (
|
||||
sptauth.ScopePlaylistModifyPrivate,
|
||||
sptauth.ScopePlaylistReadPrivate,
|
||||
sptauth.ScopePlaylistReadCollaborative,
|
||||
sptauth.ScopeUserReadPlaybackState,
|
||||
sptauth.ScopeUserModifyPlaybackState,
|
||||
sptauth.ScopeUserLibraryModify,
|
||||
sptauth.ScopeUserLibraryRead,
|
||||
sptauth.ScopeUserReadPrivate,
|
||||
|
||||
@@ -213,3 +213,7 @@ func CurrentUserSavedTracks(errHandler func(err error)) (*LikedSongs, error) {
|
||||
func RecentlyPlayed() ([]spotify.RecentlyPlayedItem, error) {
|
||||
return Client.PlayerRecentlyPlayedOpt(ctx(), &spotify.RecentlyPlayedOptions{Limit: 50})
|
||||
}
|
||||
|
||||
func GetPlayerState() (*spotify.PlayerState, error) {
|
||||
return Client.PlayerState(ctx())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user