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