mirror of
https://github.com/pkkid/python-plexapi
synced 2025-02-16 21:08:27 +00:00
Cleanup docstrings
This commit is contained in:
parent
8615f865ac
commit
db9c8f42f7
1 changed files with 11 additions and 8 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue