aboutsummaryrefslogtreecommitdiff
path: root/pandora
diff options
context:
space:
mode:
authorjcass <john.cass77@gmail.com>2015-12-21 00:32:30 +0200
committerjcass <john.cass77@gmail.com>2015-12-21 00:32:30 +0200
commit4c2ac3d0246ff73bc68756ad1dd3648c1d51d30d (patch)
tree1a84f350a1474a9c100054858641ade473a26711 /pandora
parent264130bb606b84665e2da3eb84b884fb05a2ffb0 (diff)
downloadpydora-4c2ac3d0246ff73bc68756ad1dd3648c1d51d30d.tar.bz2
pydora-4c2ac3d0246ff73bc68756ad1dd3648c1d51d30d.tar.xz
pydora-4c2ac3d0246ff73bc68756ad1dd3648c1d51d30d.zip
Add suppot for more advertisement fields.
Diffstat (limited to 'pandora')
-rw-r--r--pandora/client.py3
-rw-r--r--pandora/models/pandora.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/pandora/client.py b/pandora/client.py
index 78c931c..1eea242 100644
--- a/pandora/client.py
+++ b/pandora/client.py
@@ -271,8 +271,7 @@ class APIClient(BaseAPIClient):
271 return self("ad.getAdMetadata", 271 return self("ad.getAdMetadata",
272 adToken=ad_token, 272 adToken=ad_token,
273 returnAdTrackingTokens=True, 273 returnAdTrackingTokens=True,
274 supportAudioAds=True, 274 supportAudioAds=True)
275 includeBannerAd=True)
276 275
277 def register_ad(self, station_id, tokens): 276 def register_ad(self, station_id, tokens):
278 return self("ad.registerAd", 277 return self("ad.registerAd",
diff --git a/pandora/models/pandora.py b/pandora/models/pandora.py
index e3a3c1c..1ec345f 100644
--- a/pandora/models/pandora.py
+++ b/pandora/models/pandora.py
@@ -214,6 +214,8 @@ class AdItem(PlaylistModel):
214 company_name = Field("companyName") 214 company_name = Field("companyName")
215 tracking_tokens = Field("adTrackingTokens") 215 tracking_tokens = Field("adTrackingTokens")
216 audio_url = Field("audioUrl") 216 audio_url = Field("audioUrl")
217 image_url = Field("imageUrl")
218 click_through_url = Field("clickThroughUrl")
217 station_id = Field("stationId") 219 station_id = Field("stationId")
218 220
219 @property 221 @property