From 423e87046df6e0c544aba35112f94f44fec14b24 Mon Sep 17 00:00:00 2001 From: BrutuZ Date: Tue, 6 Jul 2021 12:27:31 -0300 Subject: [PATCH] Support forced HAMA IDs when using tvdb uniqueID --- resources/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index a3363a77..f49e5a66 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -44,7 +44,7 @@ REGEX_END_DIGITS = re.compile(r'''/(.+)/(\d+)$''') REGEX_PLEX_DIRECT = re.compile(r'''\.plex\.direct:\d+$''') # Plex API REGEX_IMDB = re.compile(r'''/(tt\d+)''') -REGEX_TVDB = re.compile(r'''thetvdb:\/\/(.+?)\?''') +REGEX_TVDB = re.compile(r'''(?:the)?tvdb(?::\/\/|[2-5]?-)(\d+?)\?''') REGEX_TMDB = re.compile(r'''themoviedb:\/\/(.+?)\?''') # Plex music REGEX_MUSICPATH = re.compile(r'''^\^(.+)\$$''')