Skip to content

Commit

Permalink
Use song_token for creating station with SongSearchResultItem
Browse files Browse the repository at this point in the history
  • Loading branch information
theophileds authored and mcrute committed May 20, 2024
1 parent f3d66e1 commit 0bfd6db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pandora/models/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class SongSearchResultItem(SearchResultItem):
song_name = Field("songName")

def create_station(self):
return self._api_client.create_station(track_token=self.token)
return self._api_client.create_station(song_token=self.token)

@classmethod
def from_json(cls, api_client, data):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pandora/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ def test_create_station(self):

self.assertIsNotNone(result.create_station())
result._api_client.create_station.assert_called_with(
track_token=result.token
song_token=result.token
)


Expand Down

0 comments on commit 0bfd6db

Please sign in to comment.