fixMatch docstring update

This commit is contained in:
blacktwin 2020-03-14 23:39:19 -04:00
parent 07cf7d16e4
commit 30974f807b

View file

@ -468,7 +468,15 @@ class PlexPartialObject(PlexObject):
return self.findItems(data)
def fixMatch(self, searchResult=None, auto=False):
""" Use match result to update show metadata. """
""" Use match result to update show metadata.
Parameters:
auto (bool): True uses first match from matches
False allows user to provide the match
*Auto matching
searchResult (:class:`~plexapi.media.SearchResult): Search result from
~plexapi.base.matches()
"""
key = '/library/metadata/%s/match' % self.ratingKey
if auto:
searchResult = self.matches()[0]