diff options
Diffstat (limited to 'pandora/models/station.py')
-rw-r--r-- | pandora/models/station.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pandora/models/station.py b/pandora/models/station.py index a1880ec..d3f6552 100644 --- a/pandora/models/station.py +++ b/pandora/models/station.py | |||
@@ -80,8 +80,7 @@ class Station(PandoraModel): | |||
80 | feedback = Field("feedback", model=StationFeedback) | 80 | feedback = Field("feedback", model=StationFeedback) |
81 | 81 | ||
82 | def get_playlist(self, additional_urls=None): | 82 | def get_playlist(self, additional_urls=None): |
83 | return iter(self._api_client.get_playlist(self.token, | 83 | return iter(self._api_client.get_playlist(self.token, additional_urls)) |
84 | additional_urls)) | ||
85 | 84 | ||
86 | 85 | ||
87 | class StationList(PandoraListModel): | 86 | class StationList(PandoraListModel): |
@@ -105,8 +104,10 @@ class GenreStation(PandoraModel): | |||
105 | category = Field("categoryName") | 104 | category = Field("categoryName") |
106 | 105 | ||
107 | def get_playlist(self): | 106 | def get_playlist(self): |
108 | raise NotImplementedError("Genre stations do not have playlists. " | 107 | raise NotImplementedError( |
109 | "Create a real station using the token.") | 108 | "Genre stations do not have playlists. " |
109 | "Create a real station using the token." | ||
110 | ) | ||
110 | 111 | ||
111 | 112 | ||
112 | class GenreStationList(PandoraDictListModel): | 113 | class GenreStationList(PandoraDictListModel): |