From 621584be3ca28d19667fc7c6353fab9ff09b7fa6 Mon Sep 17 00:00:00 2001 From: indierodo <13654429+indierodo@users.noreply.github.com> Date: Sat, 24 Aug 2024 12:48:27 -0600 Subject: [PATCH] Very small additions to documentation (#637) 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. --- ytmusicapi/mixins/playlists.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ytmusicapi/mixins/playlists.py b/ytmusicapi/mixins/playlists.py index 7e88080e..107b1d66 100644 --- a/ytmusicapi/mixins/playlists.py +++ b/ytmusicapi/mixins/playlists.py @@ -87,6 +87,8 @@ def get_playlist( "id": "MPREb_PxmzvDuqOnC" }, "duration": "2:58", + "duration_seconds": 178, + "setVideoId": "748EE8..." "likeStatus": "INDIFFERENT", "thumbnails": [...], "isAvailable": True, @@ -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).