@@ -156,14 +156,14 @@ def create(cls, server, title, items=None, section=None, limit=None, smart=False
156156 server (:class:`~plexapi.server.PlexServer`): Server your connected to.
157157 title (str): Title of the playlist.
158158 items (Iterable): Iterable of objects that should be in the playlist.
159- section (:class:`~plexapi.library.LibrarySection, str):
159+ section (:class:`~plexapi.library.LibrarySection` , str):
160160 limit (int): default None.
161161 smart (bool): default False.
162162
163163 **kwargs (dict): is passed to the filters. For a example see the search method.
164164
165165 Returns:
166- class:`~ plexapi.playlist.Playlist
166+ : class:`plexapi.playlist.Playlist`: an instance of created Playlist.
167167 """
168168 if smart :
169169 return cls ._createSmart (server , title , section , limit , ** kwargs )
@@ -190,7 +190,7 @@ def _createSmart(cls, server, title, section, limit=None, **kwargs):
190190 for category , value in kwargs .items ():
191191 sectionChoices = section .listChoices (category )
192192 for choice in sectionChoices :
193- if choice .title == value or choice . title . lower () == value .lower ():
193+ if str ( choice .title ). lower () == str ( value ) .lower ():
194194 uri = uri + '&%s=%s' % (category .lower (), str (choice .key ))
195195
196196 uri = uri + '&sourceType=%s' % sectionType
0 commit comments