Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Coetzee <[email protected]>
  • Loading branch information
Pipboyguy committed May 5, 2024
1 parent 8e174c7 commit d5ec7fa
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ def get_spotify_access_token(client_id: str, client_secret: str) -> str:
return auth_response.json()["access_token"]


def fetch_show_episode_data(
show_id: str, access_token=None, params: Dict[str, Any] = None
):
def fetch_show_episode_data(show_id: str, access_token=None, params: Dict[str, Any] = None):
"""Fetch all shows data from Spotify API based on endpoint and params."""
url = f"{BASE_SPOTIFY_URL}/shows/{show_id}/episodes"
if params is None:
Expand All @@ -94,9 +92,7 @@ def fetch_show_episode_data(


@dlt.source
def spotify_shows(
client_id: str = dlt.secrets.value, client_secret: str = dlt.secrets.value
):
def spotify_shows(client_id: str = dlt.secrets.value, client_secret: str = dlt.secrets.value):
access_token = get_spotify_access_token(client_id, client_secret)
params = {"limit": 50}
for show in fields(Shows):
Expand Down

0 comments on commit d5ec7fa

Please sign in to comment.