Skip to content

Commit 37b4c87

Browse files
authored
Merge pull request #452 from jjlawren/fix_docstrings
Fix docstrings for tests
2 parents 6e1fac7 + 9baff74 commit 37b4c87

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

plexapi/base.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -476,13 +476,10 @@ def unmatch(self):
476476
key = '/library/metadata/%s/unmatch' % self.ratingKey
477477
self._server.query(key, method=self._server._session.put)
478478

479-
def matches(self, auto=False, agent=None, title=None, year=None, language=None):
480-
""" Return list of (:class:`~plexapi.media.SearchResult) metadata matches.
479+
def matches(self, agent=None, title=None, year=None, language=None):
480+
""" Return list of (:class:`~plexapi.media.SearchResult`) metadata matches.
481481
482482
Parameters:
483-
auto (bool): True searches for matches automatically
484-
False allows for user to provide additional parameters to search
485-
*Auto searching
486483
agent (str): Agent name to be used (imdb, thetvdb, themoviedb, etc.)
487484
title (str): Title of item to search for
488485
year (str): Year of item to search in
@@ -538,8 +535,7 @@ def fixMatch(self, searchResult=None, auto=False):
538535
Parameters:
539536
auto (bool): True uses first match from matches
540537
False allows user to provide the match
541-
*Auto matching
542-
searchResult (:class:`~plexapi.media.SearchResult): Search result from
538+
searchResult (:class:`~plexapi.media.SearchResult`): Search result from
543539
~plexapi.base.matches()
544540
"""
545541
key = '/library/metadata/%s/match' % self.ratingKey

plexapi/media.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -450,16 +450,13 @@ def remove(self):
450450

451451
def move(self, after):
452452
""" Move Conversion items position in queue
453-
after (int): Positional integer to move item
454-
-1 Active conversion
455-
OR
456-
Use another conversion items playQueueItemID to move in front of
453+
after (int): Place item after specified playQueueItemID. '-1' is the active conversion.
457454
458455
Example:
459456
Move 5th conversion Item to active conversion
460457
conversions[4].move('-1')
461458
462-
Move 4th conversion Item to 2nd in conversion queue
459+
Move 4th conversion Item to 3rd in conversion queue
463460
conversions[3].move(conversions[1].playQueueItemID)
464461
"""
465462

0 commit comments

Comments
 (0)