Skip to content

Podcast and episode models #992

Description

@sigma67

Part of #307. Base branch: ytmusicapi-2. Read the contributor guide from #982 before starting.

Scope

mixins/podcasts.py, parsed by ytmusicapi/parsers/podcasts.py:

  • get_channel and get_channel_episodes
  • get_podcast
  • get_episode
  • get_episodes_playlist

Watch out for

Episodes carry fields songs do not (date, duration, description, podcast reference) and lack several a song has, so this is likely its own model rather than a reuse of the song model from #983.

Some podcast search results come back without a browseId (#976) — whatever the equivalent is here needs to be optional rather than assumed present.

Definition of done

  • All five methods return models.
  • Tests cover an episode with and without a description.
  • mypy --strict clean.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededv2-modelspydantic response models effort (#307)

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions