This commit is contained in:
j 2017-06-17 18:02:14 +02:00
parent ddb318fa72
commit 26a90dfd6e

View file

@ -88,8 +88,9 @@ def render_subtitles(item_json, output_json, output_srt, lang=None):
'in': sub_in, 'in': sub_in,
'out': sub_out, 'out': sub_out,
'value': [], 'value': [],
'ids': []
} }
if lang is None:
subs[sub_id]['ids'] = []
is_korean = 'lang="ko"' in sub['value'] is_korean = 'lang="ko"' in sub['value']
value = sub['value'].replace('<br>', '') value = sub['value'].replace('<br>', '')
value = value.replace('<span lang="ko">', '').replace('</span>', '').strip() value = value.replace('<span lang="ko">', '').replace('</span>', '').strip()