From aad06f946191050b04c66b72ce22acb29efaf522 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Wed, 15 Nov 2017 22:14:24 -0500 Subject: [PATCH] Bug correction --- list_subtitles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/list_subtitles.py b/list_subtitles.py index d4e7e063e..33e6a51cc 100644 --- a/list_subtitles.py +++ b/list_subtitles.py @@ -79,13 +79,13 @@ def list_missing_subtitles(*no): for episode_subtitles in episodes_subtitles: actual_subtitles = [] - actual_subtitles_list = [] desired_subtitles = [] missing_subtitles = [] if episode_subtitles[1] != None: actual_subtitles = ast.literal_eval(episode_subtitles[1]) if episode_subtitles[2] != None: desired_subtitles = ast.literal_eval(episode_subtitles[2]) + actual_subtitles_list = [] for item in actual_subtitles: actual_subtitles_list.append(item[0]) missing_subtitles = list(set(desired_subtitles) - set(actual_subtitles_list))