@@ -141,20 +141,20 @@ def _createArgs(
141141 server ,
142142 items ,
143143 startItem = None ,
144- shuffle = 0 ,
145- repeat = 0 ,
146- includeChapters = 1 ,
147- includeRelated = 1 ,
148- continuous = 0 ,
144+ shuffle = False ,
145+ repeat = False ,
146+ includeChapters = True ,
147+ includeRelated = True ,
148+ continuous = False ,
149149 ** kwargs
150150 ):
151151 args = {
152152 "machineIdentifier" : server .machineIdentifier ,
153- "includeChapters" : includeChapters ,
154- "includeRelated" : includeRelated ,
155- "repeat" : repeat ,
156- "shuffle" : shuffle ,
157- "continuous" : continuous ,
153+ "includeChapters" : int ( bool ( includeChapters )) ,
154+ "includeRelated" : int ( bool ( includeRelated )) ,
155+ "repeat" : int ( bool ( repeat )) ,
156+ "shuffle" : int ( bool ( shuffle )) ,
157+ "continuous" : int ( bool ( continuous )) ,
158158 ** kwargs
159159 }
160160
@@ -182,11 +182,11 @@ def create(
182182 server ,
183183 items ,
184184 startItem = None ,
185- shuffle = 0 ,
186- repeat = 0 ,
187- includeChapters = 1 ,
188- includeRelated = 1 ,
189- continuous = 0 ,
185+ shuffle = False ,
186+ repeat = False ,
187+ includeChapters = True ,
188+ includeRelated = True ,
189+ continuous = False ,
190190 ** kwargs
191191 ):
192192 """Create and return a new :class:`~plexapi.playqueue.PlayQueue`.
@@ -197,11 +197,11 @@ def create(
197197 A media item or a list of media items.
198198 startItem (:class:`~plexapi.base.Playable`, optional):
199199 Media item in the PlayQueue where playback should begin.
200- shuffle (int , optional): Start the playqueue shuffled.
201- repeat (int , optional): Start the playqueue shuffled.
202- includeChapters (int , optional): include Chapters.
203- includeRelated (int , optional): include Related.
204- continuous (int , optional): include additional items after the initial item.
200+ shuffle (bool , optional): Start the playqueue shuffled.
201+ repeat (bool , optional): Start the playqueue shuffled.
202+ includeChapters (bool , optional): include Chapters.
203+ includeRelated (bool , optional): include Related.
204+ continuous (bool , optional): include additional items after the initial item.
205205 For a show this would be the next episodes, for a movie it does nothing.
206206 **kwargs (dict): Additional options to apply to the playqueue.
207207 """
0 commit comments