Skip to content

Commit

Permalink
✨ Add support for the podcast metadata endpoint
Browse files Browse the repository at this point in the history
on the Spotify Podcaster Analytics API
  • Loading branch information
jh0ker committed Sep 19, 2023
1 parent eb07eb1 commit adcf363
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions okr/scrapers/podcasts/spotify_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,19 @@ def licensed_podcasts(self) -> Dict:
"""
return self.podcast_api(f"licensors/{LICENSOR_ID}/podcasts")

def podcast_meta(self, podcast_id: str) -> dict:
"""Read meta data for specific podcast from Spotify Podcaster API.
Args:
podcast_id (str): Podcast ID.
Returns:
dict: Results from API.
"""
return self.podcast_api(
f"licensors/{LICENSOR_ID}/podcasts/{podcast_id}/metadata",
)

def podcast_data(
self,
podcast_id: str,
Expand Down

0 comments on commit adcf363

Please sign in to comment.