Cleanup docstrings

This commit is contained in:
Michael Shepanski 2017-02-14 23:22:57 -05:00
parent 8615f865ac
commit db9c8f42f7

View file

@ -128,11 +128,13 @@ class Library(PlexObject):
def cancelUpdate(self):
""" Cancel a library update. """
self._server.query('/library/sections/all/refresh', method=self._server._session.delete)
key = '/library/sections/all/refresh'
self._server.query(key, method=self._server._session.delete)
def refresh(self):
""" Forces a download of fresh media information from the internet.
This can take a long time. Any locked fields are not modified."""
This can take a long time. Any locked fields are not modified.
"""
self._server.query('/library/sections/all/refresh?force=1')
@ -246,7 +248,8 @@ class LibrarySection(PlexObject):
def refresh(self):
""" Forces a download of fresh media information from the internet.
This can take a long time. Any locked fields are not modified."""
This can take a long time. Any locked fields are not modified.
"""
key = '/library/sections/%s/refresh?force=1' % self.key
self._server.query(key)