Skip to content

Upgrade spotify dependency#23

Open
simonswine wants to merge 2 commits intomasroorhasan:masterfrom
simonswine:upgrade-spotify-dependency
Open

Upgrade spotify dependency#23
simonswine wants to merge 2 commits intomasroorhasan:masterfrom
simonswine:upgrade-spotify-dependency

Conversation

@simonswine
Copy link
Contributor

This updates spotify libraries to the lastest upstream. Is relying on #22

Copy link
Owner

@masroorhasan masroorhasan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @simonswine - lets ship the modules patch + vendor cleanup first, rebase here and bump spotify dep as a standalone change.

Comment on lines +251 to 252
_, err = client.AddTracksToPlaylist(pl.ID, playing.Item.ID)
if err != nil {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_, err = client.AddTracksToPlaylist(pl.ID, playing.Item.ID)
if err != nil {
if _, err = client.AddTracksToPlaylist(pl.ID, playing.Item.ID); err != nil {

Comment on lines +356 to 357
_, err = client.AddTracksToPlaylist(pl.ID, tr.ID)
if err != nil {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_, err = client.AddTracksToPlaylist(pl.ID, tr.ID)
if err != nil {
if _, err = client.AddTracksToPlaylist(pl.ID, tr.ID); err != nil {

Comment on lines +392 to 393
_, err = client.AddTracksToPlaylist(pl.ID, tracks[0].ID)
if err != nil {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_, err = client.AddTracksToPlaylist(pl.ID, tracks[0].ID)
if err != nil {
if _, err = client.AddTracksToPlaylist(pl.ID, tracks[0].ID); err != nil {

Comment on lines +432 to 433
_, err = client.RemoveTracksFromPlaylist(pl.ID, matchedTrack.ID)
if err != nil {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
_, err = client.RemoveTracksFromPlaylist(pl.ID, matchedTrack.ID)
if err != nil {
if _, err = client.RemoveTracksFromPlaylist(pl.ID, matchedTrack.ID); err != nil {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants