Fixed opensubtitles.com filtering AI translated subtitles even when they are requested by user. #2381

pull/2383/head v1.4.2-beta.0
morpheus65535 11 months ago
parent 4029c9f712
commit 5402c2aaaf

@ -349,9 +349,10 @@ class OpenSubtitlesComProvider(ProviderRetryMixin, Provider):
if len(result['data']):
for item in result['data']:
# ignore AI translated subtitles
if 'ai_translated' in item['attributes'] and item['attributes']['ai_translated']:
logger.debug("Skipping AI translated subtitles")
continue
if not self.include_ai_translated:
if 'ai_translated' in item['attributes'] and item['attributes']['ai_translated']:
logger.debug("Skipping AI translated subtitles")
continue
# ignore machine translated subtitles
if 'machine_translated' in item['attributes'] and item['attributes']['machine_translated']:

Loading…
Cancel
Save