mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-26 17:47:20 +00:00
Bug correction
This commit is contained in:
parent
aad06f9461
commit
77d2a0d5d0
1 changed files with 9 additions and 9 deletions
|
@ -81,11 +81,11 @@ def list_missing_subtitles(*no):
|
||||||
actual_subtitles = []
|
actual_subtitles = []
|
||||||
desired_subtitles = []
|
desired_subtitles = []
|
||||||
missing_subtitles = []
|
missing_subtitles = []
|
||||||
|
actual_subtitles_list = []
|
||||||
if episode_subtitles[1] != None:
|
if episode_subtitles[1] != None:
|
||||||
actual_subtitles = ast.literal_eval(episode_subtitles[1])
|
actual_subtitles = ast.literal_eval(episode_subtitles[1])
|
||||||
if episode_subtitles[2] != None:
|
if episode_subtitles[2] != None:
|
||||||
desired_subtitles = ast.literal_eval(episode_subtitles[2])
|
desired_subtitles = ast.literal_eval(episode_subtitles[2])
|
||||||
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…
Reference in a new issue