From 752c4a21423f8e9c1a59e3b9bf9a2a0d8074966c Mon Sep 17 00:00:00 2001 From: vitiko98 Date: Sun, 18 Oct 2020 13:09:25 -0400 Subject: [PATCH] fix opensubtitles imdb comparison --- libs/subliminal_patch/providers/opensubtitles.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/subliminal_patch/providers/opensubtitles.py b/libs/subliminal_patch/providers/opensubtitles.py index 737fadd72..429eb6d55 100644 --- a/libs/subliminal_patch/providers/opensubtitles.py +++ b/libs/subliminal_patch/providers/opensubtitles.py @@ -4,6 +4,7 @@ import base64 import logging import os import traceback +import re import zlib import time import requests @@ -329,7 +330,7 @@ class OpenSubtitlesProvider(ProviderRetryMixin, _OpenSubtitlesProvider): if language not in languages: continue - if video.imdb_id and (movie_imdb_id != video.imdb_id): + if video.imdb_id and (movie_imdb_id != re.sub("(?