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

Add ugc_image_upload scope to playlist_cover_image_upload #324

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 3 additions & 1 deletion docs/src/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Unreleased
-----------
Fixed
*****
- Add `ugc_image_upload` to required scopes of
:meth:`SpotifyPlaylistModify.playlist_cover_image_upload`
- Make ``available_markets`` of :class:`Show <model.Show>`,
:class:`LocalAlbum <model.LocalAlbum>` and
:class:`LocalTrack <model.LocalTrack>` optional (:issue:`323`)
Expand Down Expand Up @@ -51,7 +53,7 @@ Fixed

Added
*****
- Add ``restrictions`` to :class:`FullEpisode <model.FullEpisode>`
- Add ``restrictions`` to :class:`FullEpisode <model.FullEpisode>`
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My editor is configured to automatically remove trailing spaces on save.

(:issue:`310`)
- Support HTTPX ``0.26`` (:issue:`311`)
- Improve ``UnknownModelAttributeWarning`` to include model name (:issue:`313`)
Expand Down
5 changes: 4 additions & 1 deletion src/tekore/_client/api/playlist/modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
class SpotifyPlaylistModify(SpotifyBase):
"""Playlist API endpoints for modifying playlists."""

@scopes([scope.playlist_modify_public], [scope.playlist_modify_private])
@scopes(
[scope.playlist_modify_public, scope.ugc_image_upload],
[scope.playlist_modify_private],
)
@send_and_process(nothing)
def playlist_cover_image_upload(self, playlist_id: str, image: str) -> None:
"""
Expand Down