diff --git a/plexapi/library.py b/plexapi/library.py index 7a88574f6..4a7c4b848 100644 --- a/plexapi/library.py +++ b/plexapi/library.py @@ -110,7 +110,7 @@ def cleanBundles(self): server will automatically clean up old bundles once a week as part of Scheduled Tasks. """ # TODO: Should this check the response for success or the correct mediaprefix? - self._server.query('/library/clean/bundles') + self._server.query('/library/clean/bundles?async=1', method=self._server._session.put) def emptyTrash(self): """ If a library has items in the Library Trash, use this option to empty the Trash. """ @@ -122,7 +122,7 @@ def optimize(self): For example, if you have deleted or added an entire library or many items in a library, you may like to optimize the database. """ - self._server.query('/library/optimize') + self._server.query('/library/optimize?async=1', method=self._server._session.put) def update(self): """ Scan this library for new items."""