Skip to content

Commit

Permalink
Very small additions to documentation (#637)
Browse files Browse the repository at this point in the history
While I was reading the docs to append video items, I got confused by the setVideoId parameter. I added the missing field to the get_playlists_id example and copied the definition to the edit playlist documentation.

I hope this is ok, it's a very small change, but I think it might help others. I really appreciate the time you take by looking at this.
  • Loading branch information
indierodo authored Aug 24, 2024
1 parent d6b6004 commit 621584b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ytmusicapi/mixins/playlists.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def get_playlist(
"id": "MPREb_PxmzvDuqOnC"
},
"duration": "2:58",
"duration_seconds": 178,
"setVideoId": "748EE8..."
"likeStatus": "INDIFFERENT",
"thumbnails": [...],
"isAvailable": True,
Expand Down Expand Up @@ -276,7 +278,8 @@ def edit_playlist(
:param title: Optional. New title for the playlist
:param description: Optional. New description for the playlist
:param privacyStatus: Optional. New privacy status for the playlist
:param moveItem: Optional. Move one item before another. Items are specified by setVideoId, see :py:func:`get_playlist`
:param moveItem: Optional. Move one item before another. Items are specified by setVideoId, which is the
unique id of this playlist item. See :py:func:`get_playlist`
:param addPlaylistId: Optional. Id of another playlist to add to this playlist
:param addToTop: Optional. Change the state of this playlist to add items to the top of the playlist (if True)
or the bottom of the playlist (if False - this is also the default of a new playlist).
Expand Down

0 comments on commit 621584b

Please sign in to comment.