From 1c235dfd2ae1057d4e4bc203f0dea0bba8201883 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 3 Jul 2018 16:55:16 +0200 Subject: [PATCH] add chinese subtitles --- subtitles.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subtitles.py b/subtitles.py index 31dd65a..46bec01 100755 --- a/subtitles.py +++ b/subtitles.py @@ -244,7 +244,10 @@ if __name__ == '__main__': output_json = prefix + 'no-en.json' output_srt = prefix + 'no-en.srt' render_subtitles(item_json, output_json, output_srt, ['no', 'en']) - for lang in ('en', 'ko', 'no'): + output_json = prefix + 'ch-en.json' + output_srt = prefix + 'ch-en.srt' + render_subtitles(item_json, output_json, output_srt, ['ch', 'en']) + for lang in ('en', 'ko', 'no', 'ch'): output_json = prefix + lang + '.json' output_srt = prefix + lang + '.srt' render_subtitles(item_json, output_json, output_srt, lang)