Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nullable Episode.audio_preview_url #305

Merged
merged 3 commits into from Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/src/release_notes.rst
Expand Up @@ -9,6 +9,9 @@ Fixed
*****
- Add undocumented ``is_externally_hosted`` attribute to
:class:`Audiobook <model.Audiobook>` (:issue:`302`)
- Changed the type the of ``audio_preview_url`` attribute in the ``Episode`` base
class to a nullable string, complying with the `API Documentation
<https://developer.spotify.com/documentation/web-api/reference/get-an-episode>`_

5.1.1 (2023-10-14)
------------------
Expand Down
2 changes: 1 addition & 1 deletion src/tekore/_model/episode.py
Expand Up @@ -11,7 +11,7 @@
class Episode(Item):
"""Episode base."""

audio_preview_url: str
audio_preview_url: Optional[str]
description: str
duration_ms: int
explicit: bool
Expand Down