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,
'out': sub_out,
'value': [],
'ids': []
}
if lang is None:
subs[sub_id]['ids'] = []
is_korean = 'lang="ko"' in sub['value']
value = sub['value'].replace('<br>', '')
value = value.replace('<span lang="ko">', '').replace('</span>', '').strip()