Missing subtitles not updating correctly

pull/26/head
Louis Vézina 7 years ago
parent 74018c0a0c
commit 55bf529419

@ -85,10 +85,6 @@ def list_missing_subtitles(*no):
actual_subtitles = ast.literal_eval(episode_subtitles[1]) actual_subtitles = ast.literal_eval(episode_subtitles[1])
desired_subtitles = ast.literal_eval(episode_subtitles[2]) desired_subtitles = ast.literal_eval(episode_subtitles[2])
actual_subtitles_list = [] actual_subtitles_list = []
if desired_subtitles == None:
pass
else:
actual_subtitles_list = []
for item in actual_subtitles: for item in actual_subtitles:
actual_subtitles_list.append(item[0]) actual_subtitles_list.append(item[0])
missing_subtitles = list(set(desired_subtitles) - set(actual_subtitles_list)) missing_subtitles = list(set(desired_subtitles) - set(actual_subtitles_list))

Loading…
Cancel
Save