From 7200e94af17a32d96b08ac91232150439b1ab9ca Mon Sep 17 00:00:00 2001 From: Samuel Martins Date: Thu, 21 Jul 2022 12:04:09 +0200 Subject: [PATCH] Fix ident --- Contents/Code/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Contents/Code/__init__.py b/Contents/Code/__init__.py index 4446723..ba3029d 100644 --- a/Contents/Code/__init__.py +++ b/Contents/Code/__init__.py @@ -221,8 +221,8 @@ def Update(self, metadata, media, lang, force, movie): meta_role.role = role['character'] meta_role.photo = "http://{host}:{port}{relativeURL}".format(host=Prefs['Hostname'], port=Prefs['Port'], relativeURL=role['staff_image']) - # Add studio information - # Plex does not support multiple studios, we take the first studio found. + # Add studio information + # Plex does not support multiple studios, we take the first studio found. cast_v3 = HttpReq("api/v3/series/%s/Cast?" % aid) for element in cast_v3: if element['RoleName'] == "Studio": @@ -231,10 +231,10 @@ def Update(self, metadata, media, lang, force, movie): # If there is no "Animation Work" on AniDB we use "Work" if metadata.studio == None: - for element in cast_v3: - if element['RoleDetails'] == "Work": - metadata.studio = element['Staff']['Name'] - break + for element in cast_v3: + if element['RoleDetails'] == "Work": + metadata.studio = element['Staff']['Name'] + break if not movie: