mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-21 19:23:05 +00:00
add check for passing the name keyword
This commit is contained in:
parent
bfe09f0ea3
commit
b7a3deff9e
1 changed files with 3 additions and 1 deletions
|
@ -371,7 +371,9 @@ class Movie(Playable, Video):
|
|||
actor = 'actor[%s]' % index
|
||||
if name:
|
||||
edits['%s.tag.tag' % actor] = name
|
||||
if role:
|
||||
else:
|
||||
raise BadRequest('name keyword is required.')
|
||||
if role or type(role) == str:
|
||||
edits['%s.tagging.text' % actor] = role
|
||||
if thumb:
|
||||
edits['%s.tag.thumb' % actor] = thumb
|
||||
|
|
Loading…
Reference in a new issue