mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 19:53:17 +00:00
Cleanup docstrings
This commit is contained in:
parent
8615f865ac
commit
db9c8f42f7
1 changed files with 11 additions and 8 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue