mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 11:43:13 +00:00
docstring update
adding docstring descriptions for new functions
This commit is contained in:
parent
d5c58b4ac3
commit
3f2d0766f8
1 changed files with 4 additions and 0 deletions
|
@ -240,6 +240,7 @@ class Movie(Playable, Video):
|
|||
self.reload()
|
||||
|
||||
def selectSubtitle(self, streamID=int, streamTitle=str):
|
||||
""" Select Subtitle for movie. """
|
||||
url = '/library/parts/%s' % self.media[0].parts[0].id
|
||||
for stream in self.subtitleStreams():
|
||||
if streamID == stream.id or streamTitle == stream.title:
|
||||
|
@ -248,6 +249,7 @@ class Movie(Playable, Video):
|
|||
self.reload()
|
||||
|
||||
def removeSubtitles(self, streamID=int, streamTitle=str):
|
||||
""" Remove Subtitle from movie's subtitles listing. """
|
||||
for stream in self.subtitleStreams():
|
||||
if streamID == stream.id or streamTitle == stream.title:
|
||||
self._server.query(stream.key, self._server._session.delete)
|
||||
|
@ -670,6 +672,7 @@ class Episode(Playable, Video):
|
|||
self.reload()
|
||||
|
||||
def selectSubtitle(self, streamID=int, streamTitle=str):
|
||||
""" Select Subtitle for episode. """
|
||||
url = '/library/parts/%s' % self.media[0].parts[0].id
|
||||
for stream in self.subtitleStreams():
|
||||
if streamID == stream.id or streamTitle == stream.title:
|
||||
|
@ -678,6 +681,7 @@ class Episode(Playable, Video):
|
|||
self.reload()
|
||||
|
||||
def removeSubtitles(self, streamID=int, streamTitle=str):
|
||||
""" Remove Subtitle from episode's subtitles listing. """
|
||||
for stream in self.subtitleStreams():
|
||||
if streamID == stream.id or streamTitle == stream.title:
|
||||
self._server.query(stream.key, self._server._session.delete)
|
||||
|
|
Loading…
Reference in a new issue