mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-14 08:00:12 +08:00
fix opensubtitles imdb comparison
This commit is contained in:
parent
2daa410a5f
commit
752c4a2142
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ import base64
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import traceback
|
import traceback
|
||||||
|
import re
|
||||||
import zlib
|
import zlib
|
||||||
import time
|
import time
|
||||||
import requests
|
import requests
|
||||||
|
@ -329,7 +330,7 @@ class OpenSubtitlesProvider(ProviderRetryMixin, _OpenSubtitlesProvider):
|
||||||
if language not in languages:
|
if language not in languages:
|
||||||
continue
|
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
|
continue
|
||||||
|
|
||||||
query_parameters = _subtitle_item.get("QueryParameters")
|
query_parameters = _subtitle_item.get("QueryParameters")
|
||||||
|
|
Loading…
Add table
Reference in a new issue