korean first

This commit is contained in:
j 2017-05-21 23:14:15 +02:00
parent 14b278fdd1
commit c16d98785a
2 changed files with 3 additions and 2 deletions

View file

@ -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'

View file

@ -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']))