@classmethod<EOL><INDENT>def create(cls, server, item, shuffle=<NUM_LIT:0>, repeat=<NUM_LIT:0>, includeChapters=<NUM_LIT:1>, includeRelated=<NUM_LIT:1>):<DEDENT>
args = {}<EOL>args['<STR_LIT>'] = includeChapters<EOL>args['<STR_LIT>'] = includeRelated<EOL>args['<STR_LIT>'] = repeat<EOL>args['<STR_LIT>'] = shuffle<EOL>if item.type == '<STR_LIT>':<EOL><INDENT>args['<STR_LIT>'] = item.ratingKey<EOL>args['<STR_LIT:type>'] = item.playlistType<EOL><DEDENT>else:<EOL><INDENT>uuid = item.section().uuid<EOL>args['<STR_LIT:key>'] = item.key<EOL>args['<STR_LIT:type>'] = item.listType<EOL>args['<STR_LIT>'] = '<STR_LIT>' % (uuid, item.key)<EOL><DEDENT>path = '<STR_LIT>' % utils.joinArgs(args)<EOL>data = server.query(path, method=server._session.post)<EOL>c = cls(server, data, initpath=path)<EOL>c.key = item.key<EOL>return c<EOL>
Create and returns a new :class:`~plexapi.playqueue.PlayQueue`.

            Paramaters:
                server (:class:`~plexapi.server.PlexServer`): Server you are connected to.
                item (:class:`~plexapi.media.Media` or class:`~plexapi.playlist.Playlist`): A media or Playlist.
                shuffle (int, optional): Start the playqueue shuffled.
                repeat (int, optional): Start the playqueue shuffled.
                includeChapters (int, optional): include Chapters.
                includeRelated (int, optional): include Related.