Fixed improperly calculated missing subtitles when cutoff is enabled and audio language match desired subtitles language. #1731

This commit is contained in:
morpheus65535 2022-02-21 14:58:20 -05:00
parent 4bf0555ece
commit c020a9e892
1 changed files with 2 additions and 2 deletions

View File

@ -305,7 +305,7 @@ def list_missing_subtitles(no=None, epno=None, send_event=True):
if cutoff_temp_list:
for cutoff_temp in cutoff_temp_list:
cutoff_language = [cutoff_temp['language'], cutoff_temp['forced'], cutoff_temp['hi']]
if language_from_alpha2(cutoff_temp['language']) in \
if cutoff_temp['audio_exclude'] == 'True' and language_from_alpha2(cutoff_temp['language']) in \
ast.literal_eval(episode_subtitles['audio_language']):
cutoff_met = True
elif cutoff_language in actual_subtitles_list:
@ -411,7 +411,7 @@ def list_missing_subtitles_movies(no=None, send_event=True):
if cutoff_temp_list:
for cutoff_temp in cutoff_temp_list:
cutoff_language = [cutoff_temp['language'], cutoff_temp['forced'], cutoff_temp['hi']]
if language_from_alpha2(cutoff_temp['language']) in \
if cutoff_temp['audio_exclude'] == 'True' and language_from_alpha2(cutoff_temp['language']) in \
ast.literal_eval(movie_subtitles['audio_language']):
cutoff_met = True
elif cutoff_language in actual_subtitles_list: