@@ -155,9 +155,13 @@ def playlists(self) -> List[Union["Playlist", "UserPlaylist"]]:
155155 def playlist_folders (
156156 self , offset : int = 0 , limit : int = 50 , parent_folder_id : str = "root"
157157 ) -> List ["Folder" ]:
158- """Get the playlists created by the user.
158+ """
159+ Get a list of folders created by the user.
159160
160- :return: Returns a list of :class:`~tidalapi.playlist.Playlist` objects containing the playlists.
161+ :param offset: The amount of items you want returned.
162+ :param limit: The index of the first item you want included.
163+ :param parent_folder_id: Parent folder ID. Default: 'root' playlist folder
164+ :return: Returns a list of :class:`~tidalapi.playlist.Folder` objects containing the Folders.
161165 """
162166 params = {
163167 "folderId" : parent_folder_id ,
@@ -184,6 +188,8 @@ def public_playlists(
184188 ) -> List [Union ["Playlist" , "UserPlaylist" ]]:
185189 """Get the (public) playlists created by the user.
186190
191+ :param offset: The amount of items you want returned.
192+ :param limit: The index of the first item you want included.
187193 :return: List of public playlists.
188194 """
189195 params = {"limit" : limit , "offset" : offset }
@@ -204,7 +210,7 @@ def public_playlists(
204210 )
205211
206212 def playlist_and_favorite_playlists (
207- self , offset : int = 0 , limit : int = 50
213+ self , limit : Optional [ int ] = None , offset : int = 0
208214 ) -> List [Union ["Playlist" , "UserPlaylist" ]]:
209215 """Get the playlists created by the user, and the playlists favorited by the
210216 user. This function is limited to 50 by TIDAL, requiring pagination.
@@ -228,6 +234,14 @@ def playlist_and_favorite_playlists(
228234 def create_playlist (
229235 self , title : str , description : str , parent_id : str = "root"
230236 ) -> "UserPlaylist" :
237+ """
238+ Create a playlist
239+
240+ :param title: Playlist title
241+ :param description: Playlist description
242+ :param parent_id: Parent folder ID. Default: 'root' playlist folder
243+ :return: Returns an object of :class:`~tidalapi.playlist.UserPlaylist` containing the newly created playlist
244+ """
231245 params = {"name" : title , "description" : description , "folderId" : parent_id }
232246 endpoint = "my-collection/playlists/folders/create-playlist"
233247
@@ -245,6 +259,13 @@ def create_playlist(
245259 raise ObjectNotFound ("Playlist not found after creation" )
246260
247261 def create_folder (self , title : str , parent_id : str = "root" ) -> "Folder" :
262+ """
263+ Create folder
264+
265+ :param title: Folder title
266+ :param parent_id: Folder parent ID. Default: 'root' playlist folder
267+ :return: Returns an object of :class:`~tidalapi.playlist.Folder` containing the newly created object
268+ """
248269 params = {"name" : title , "folderId" : parent_id }
249270 endpoint = "my-collection/playlists/folders/create-folder"
250271
0 commit comments