diff --git a/resources/lib/plex_api/base.py b/resources/lib/plex_api/base.py index a764ccd3..6cb6978c 100644 --- a/resources/lib/plex_api/base.py +++ b/resources/lib/plex_api/base.py @@ -14,8 +14,8 @@ LOG = getLogger('PLEX.api') METADATA_PROVIDERS = (('imdb', utils.REGEX_IMDB), ('tvdb', utils.REGEX_TVDB), - ('tmdb', utils.REGEX_TMDB)) - + ('tmdb', utils.REGEX_TMDB), + ('anidb', utils.REGEX_ANIDB)) class Base(object): """ Processes a Plex media server's XML response diff --git a/resources/lib/utils.py b/resources/lib/utils.py index f49e5a66..ce829a87 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -46,6 +46,7 @@ REGEX_PLEX_DIRECT = re.compile(r'''\.plex\.direct:\d+$''') REGEX_IMDB = re.compile(r'''/(tt\d+)''') REGEX_TVDB = re.compile(r'''(?:the)?tvdb(?::\/\/|[2-5]?-)(\d+?)\?''') REGEX_TMDB = re.compile(r'''themoviedb:\/\/(.+?)\?''') +REGEX_ANIDB = re.compile(r'''anidb[2-4]?-(\d+?)\?''') # Plex music REGEX_MUSICPATH = re.compile(r'''^\^(.+)\$$''') # Grab Plex id from an URL-encoded string