change if statement to caught any not None keywords

allowing for `title="",year=""` to work correctly
This commit is contained in:
blacktwin 2020-04-29 21:09:16 -04:00
parent 6eea7cce0f
commit 517c9fb670

View file

@ -517,7 +517,7 @@ class PlexPartialObject(PlexObject):
key = '/library/metadata/%s/matches' % self.ratingKey
params = {'manual': 1}
if any([agent, title, year, language]):
if any(x is not None for x in [agent, title, year, language]):
if title is None:
params['title'] = self.title
else: