Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plexapi/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. """
Expand All @@ -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."""
Expand Down