Skip to content

Commit

Permalink
Add ugc_image_upload permission to playlist_cover_image_upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Ch00k committed Apr 19, 2024
1 parent 98d4048 commit c07a28a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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>`
(: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

0 comments on commit c07a28a

Please sign in to comment.