Cleanup docstrings

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

View file

@ -127,12 +127,14 @@ class Library(PlexObject):
self._server.query('/library/sections/all/refresh')
def cancelUpdate(self):
"""Cancel a library update. """
self._server.query('/library/sections/all/refresh', method=self._server._session.delete)
""" Cancel a library update. """
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."""
""" Forces a download of fresh media information from the internet.
This can take a long time. Any locked fields are not modified.
"""
self._server.query('/library/sections/all/refresh?force=1')
@ -235,18 +237,19 @@ class LibrarySection(PlexObject):
self._server.query(key)
def update(self):
"""Scan this section for new media. """
""" Scan this section for new media. """
key = '/library/sections/%s/refresh' % self.key
self._server.query(key)
def cancelUpdate(self):
"""Cancel update of this Library Section."""
""" Cancel update of this Library Section. """
key = '/library/sections/%s/refresh' % self.key
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."""
""" Forces a download of fresh media information from the internet.
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)