From b7a3deff9ec2bd1958fc53fd7bd46af579057bc5 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Mon, 22 Jun 2020 13:56:42 -0400 Subject: [PATCH] add check for passing the name keyword --- plexapi/video.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plexapi/video.py b/plexapi/video.py index 27037573..666f1966 100644 --- a/plexapi/video.py +++ b/plexapi/video.py @@ -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