mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[5] change Actor to Role reflecting plexapi 4.12.0 change
This commit is contained in:
parent
caacfe4718
commit
68c85f3a34
2 changed files with 3 additions and 3 deletions
2
VERSION
2
VERSION
|
@ -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…
Reference in a new issue