Merge pull request #1538 from croneter/py3-anidb
Support for the Plex HAMA agent to let Kodi identify animes (using Kodi's uniqueID 'anidb')
This commit is contained in:
commit
ce72f07fec
2 changed files with 3 additions and 2 deletions
|
@ -14,8 +14,8 @@ LOG = getLogger('PLEX.api')
|
||||||
|
|
||||||
METADATA_PROVIDERS = (('imdb', utils.REGEX_IMDB),
|
METADATA_PROVIDERS = (('imdb', utils.REGEX_IMDB),
|
||||||
('tvdb', utils.REGEX_TVDB),
|
('tvdb', utils.REGEX_TVDB),
|
||||||
('tmdb', utils.REGEX_TMDB))
|
('tmdb', utils.REGEX_TMDB),
|
||||||
|
('anidb', utils.REGEX_ANIDB))
|
||||||
class Base(object):
|
class Base(object):
|
||||||
"""
|
"""
|
||||||
Processes a Plex media server's XML response
|
Processes a Plex media server's XML response
|
||||||
|
|
|
@ -46,6 +46,7 @@ REGEX_PLEX_DIRECT = re.compile(r'''\.plex\.direct:\d+$''')
|
||||||
REGEX_IMDB = re.compile(r'''/(tt\d+)''')
|
REGEX_IMDB = re.compile(r'''/(tt\d+)''')
|
||||||
REGEX_TVDB = re.compile(r'''(?:the)?tvdb(?::\/\/|[2-5]?-)(\d+?)\?''')
|
REGEX_TVDB = re.compile(r'''(?:the)?tvdb(?::\/\/|[2-5]?-)(\d+?)\?''')
|
||||||
REGEX_TMDB = re.compile(r'''themoviedb:\/\/(.+?)\?''')
|
REGEX_TMDB = re.compile(r'''themoviedb:\/\/(.+?)\?''')
|
||||||
|
REGEX_ANIDB = re.compile(r'''anidb[2-4]?-(\d+?)\?''')
|
||||||
# Plex music
|
# Plex music
|
||||||
REGEX_MUSICPATH = re.compile(r'''^\^(.+)\$$''')
|
REGEX_MUSICPATH = re.compile(r'''^\^(.+)\$$''')
|
||||||
# Grab Plex id from an URL-encoded string
|
# Grab Plex id from an URL-encoded string
|
||||||
|
|
Loading…
Reference in a new issue