mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-29 07:00:19 +00:00
change if statement to caught any not None keywords
allowing for `title="",year=""` to work correctly
This commit is contained in:
parent
6eea7cce0f
commit
517c9fb670
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue