From c16d98785ac30e4115a9ac4b9c025a1ee33cdf36 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 21 May 2017 23:14:15 +0200 Subject: [PATCH] korean first --- playout/playsync.py | 1 + subtitles.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/playout/playsync.py b/playout/playsync.py index 8eb39f4..b0d03e3 100755 --- a/playout/playsync.py +++ b/playout/playsync.py @@ -189,6 +189,7 @@ def main(): if args.lights: time.sleep(5) + # 42 max player = mpv.MPV( log_handler=my_log, input_default_bindings=True, input_vo_keyboard=True, sub_text_font_size=28, sub_text_font='Menlo' diff --git a/subtitles.py b/subtitles.py index f1a23d1..adbb0d0 100755 --- a/subtitles.py +++ b/subtitles.py @@ -96,9 +96,9 @@ def render_subtitles(item_json, output_json, output_srt): # just use strip_tags? # value = ox.strip_tags(ox.decode_html(sub['value'])) if is_korean: - subs[sub_id]['value'].append(value) - else: subs[sub_id]['value'].insert(0, value) + else: + subs[sub_id]['value'].append(value) subs[sub_id]['ids'].append(sub['id']) position += clip['duration'] subs = sorted(subs.values(), key=lambda c: (c['in'], c['out']))