@@ -338,8 +338,7 @@ def parse(self, json_obj: JsonObj) -> "Folder":
338338 return copy .copy (self )
339339
340340 def rename (self , name : str ) -> bool :
341- """
342- Rename the selected folder
341+ """Rename the selected folder.
343342
344343 :param name: The name to be used for the folder
345344 :return: True, if operation was successful.
@@ -356,8 +355,7 @@ def rename(self, name: str) -> bool:
356355 return res .ok
357356
358357 def remove (self ) -> bool :
359- """
360- Remove the selected folder
358+ """Remove the selected folder.
361359
362360 :return: True, if operation was successful.
363361 """
@@ -373,8 +371,7 @@ def remove(self) -> bool:
373371 def items (
374372 self , offset : int = 0 , limit : int = 50
375373 ) -> List [Union ["Playlist" , "UserPlaylist" ]]:
376- """
377- Return the items in the folder
374+ """Return the items in the folder.
378375
379376 :param offset: Optional; The index of the first item to be returned. Default: 0
380377 :param limit: Optional; The amount of items you want returned. Default: 50
@@ -405,26 +402,23 @@ def items(
405402 return []
406403
407404 def add_items (self , trns : [str ]):
408- """
409- Convenience method to add items to the current folder
405+ """Convenience method to add items to the current folder.
410406
411407 :param trns: List of playlist trns to be added to the current folder
412408 :return: True, if operation was successful.
413409 """
414410 self .move_items_to_folder (trns , self .id )
415411
416412 def move_items_to_root (self , trns : [str ]):
417- """
418- Convenience method to move items from the current folder to the root folder
413+ """Convenience method to move items from the current folder to the root folder.
419414
420415 :param trns: List of playlist trns to be moved from the current folder
421416 :return: True, if operation was successful.
422417 """
423418 self .move_items_to_folder (trns , folder = "root" )
424419
425420 def move_items_to_folder (self , trns : [str ], folder : str = None ):
426- """
427- Move item(s) in one folder to another folder.
421+ """Move item(s) in one folder to another folder.
428422
429423 :param trns: List of playlist trns to be moved.
430424 :param folder: Destination folder. Default: Use the current folder
@@ -534,12 +528,13 @@ def add(
534528 def merge (
535529 self , playlist : str , allow_duplicates : bool = False , allow_missing : bool = True
536530 ) -> List [int ]:
537- """
538- Add (merge) items from a playlist with the current playlist
531+ """Add (merge) items from a playlist with the current playlist.
539532
540533 :param playlist: Playlist UUID to be merged in the current playlist
541- :param allow_duplicates: If true, duplicate tracks are allowed. Otherwise, tracks will be skipped.
542- :param allow_missing: If true, missing tracks are allowed. Otherwise, exception will be thrown
534+ :param allow_duplicates: If true, duplicate tracks are allowed. Otherwise,
535+ tracks will be skipped.
536+ :param allow_missing: If true, missing tracks are allowed. Otherwise, exception
537+ will be thrown
543538 :return:
544539 """
545540 data = {
0 commit comments