From cac32cc66ab9699739ba6d27bf0a2fe6a62ed2d5 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 5fc9a46a..416ab57f 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -48,7 +48,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'''^\^(.+)\$$''')