[5] change Actor to Role reflecting plexapi 4.12.0 change

pull/982/head
meisnate12 2 years ago
parent caacfe4718
commit 68c85f3a34

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

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

Loading…
Cancel
Save