diff --git a/resources/lib/plex_api/base.py b/resources/lib/plex_api/base.py index 60a0739a..b1385fed 100644 --- a/resources/lib/plex_api/base.py +++ b/resources/lib/plex_api/base.py @@ -15,8 +15,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 5fc9a46a..0a150e3b 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -50,6 +50,7 @@ REGEX_PLEX_DIRECT = re.compile(r'''\.plex\.direct:\d+$''') REGEX_IMDB = re.compile(r'''/(tt\d+)''') REGEX_TVDB = re.compile(r'''thetvdb:\/\/(.+?)\?''') 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