Skip to content

Commit

Permalink
Fixed opensubtitles.com filtering AI translated subtitles even when t…
Browse files Browse the repository at this point in the history
…hey are requested by user. #2381
  • Loading branch information
morpheus65535 committed Feb 7, 2024
1 parent 4029c9f commit 5402c2a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libs/subliminal_patch/providers/opensubtitlescom.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,10 @@ def query(self, languages, video):
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']:
Expand Down

0 comments on commit 5402c2a

Please sign in to comment.