mirror of
https://github.com/pkkid/python-plexapi
synced 2025-02-16 12:58:26 +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
|
actor = 'actor[%s]' % index
|
||||||
if name:
|
if name:
|
||||||
edits['%s.tag.tag' % actor] = 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
|
edits['%s.tagging.text' % actor] = role
|
||||||
if thumb:
|
if thumb:
|
||||||
edits['%s.tag.thumb' % actor] = thumb
|
edits['%s.tag.thumb' % actor] = thumb
|
||||||
|
|
Loading…
Add table
Reference in a new issue