[5] change Actor to Role reflecting plexapi 4.12.0 change

This commit is contained in:
meisnate12 2022-07-21 17:55:36 -04:00
parent caacfe4718
commit 68c85f3a34
2 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
1.17.2-develop4
1.17.2-develop5

View file

@ -8,7 +8,7 @@ from plexapi import utils
from plexapi.audio import Artist, Track, Album
from plexapi.exceptions import BadRequest, NotFound, Unauthorized
from plexapi.collection import Collection
from plexapi.library import Actor
from plexapi.library import Role
from plexapi.playlist import Playlist
from plexapi.server import PlexServer
from plexapi.video import Movie, Show, Season, Episode
@ -603,7 +603,7 @@ class Plex(Library):
def get_actor_id(self, name):
results = self.Plex.hubSearch(name)
for result in results:
if isinstance(result, Actor) and result.librarySectionID == self.Plex.key and result.tag == name:
if isinstance(result, Role) and result.librarySectionID == self.Plex.key and result.tag == name:
return result.id
def get_search_choices(self, search_name, title=True, name_pairs=False):