Merge pull request #1160 from vitiko98/opensubtitles

Fix OpenSubtitles imdb comparison
pull/1174/head
morpheus65535 4 years ago committed by GitHub
commit 467dc39b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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("(?<![^a-zA-Z])0+","", video.imdb_id)):
continue
query_parameters = _subtitle_item.get("QueryParameters")

Loading…
Cancel
Save