<%
missing_languages = ast.literal_eval(row[3])
if missing_languages is not None:
from get_subtitle import search_active
from get_settings import get_general_settings
for language in missing_languages:
if row[9] is not None and get_general_settings()[25]:
for lang in ast.literal_eval(row[9]):
if language in lang:
active = search_active(lang[1])
if active:
%>
{{language}}
%else:
{{language}}
%end
%end
%end
%else:
{{language}}
%end
%end
%end