diff --git a/subtitles.py b/subtitles.py index 533ebc1..6c01dc6 100755 --- a/subtitles.py +++ b/subtitles.py @@ -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('
', '') value = value.replace('', '').replace('', '').strip()