Skip to content

Commit 3b09f5e

Browse files
authored
Merge pull request jishi#324 from jplourde5/patch-3
Update pandora.js
2 parents f862640 + 85666d4 commit 3b09f5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/actions/pandora.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ function pandora(player, values) {
124124
const trackToken = uri.substring(uri.search('&m=') + 3,uri.search('&f='));
125125
const up = (cmd == 'thumbsup');
126126

127-
return pandoraAPI("station.addFeedback", {"stationToken" : stationToken, "trackToken" : trackToken, "isPositive" : up})
127+
return userLogin()
128+
.then(() => pandoraAPI("station.addFeedback", {"stationToken" : stationToken, "trackToken" : trackToken, "isPositive" : up}))
128129
.then(() => {
129130
if (cmd == 'thumbsdown') {
130131
return player.coordinator.nextTrack();

0 commit comments

Comments
 (0)