add check for passing the name keyword

This commit is contained in:
blacktwin 2020-06-22 13:56:42 -04:00
parent bfe09f0ea3
commit b7a3deff9e

View file

@ -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