From 26a90dfd6e1d077889db83535f7e0e99c728f269 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 17 Jun 2017 18:02:14 +0200 Subject: [PATCH] less --- subtitles.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()