From c2762557b61986d8bba259c6d84765eba60eee47 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 27 Nov 2025 19:06:11 +0100 Subject: [PATCH 1/2] fix join_subtitles --- render.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/render.py b/render.py index cbf8828..16a8ac7 100644 --- a/render.py +++ b/render.py @@ -877,6 +877,7 @@ def shift_clips(data, offset): for clip in data: clip['in'] += offset clip['out'] += offset + return data def scene_subtitles(scene, options): import item.models @@ -1076,7 +1077,9 @@ def join_subtitles(base_prefix, options): scenes = list(sorted(glob('%s/*/scene.json' % base_prefix))) data = [] position = 0 - for scene in scenes: + for scene_json in scenes: + with open(scene_json) as fd: + scene = json.load(fd) subs = scene_subtitles(scene, options) data += shift_clips(subs, position) position += get_scene_duration(scene) From 10a8892a551031b8524bf872bd16d5687743c259 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 10 Dec 2025 09:40:43 +0100 Subject: [PATCH 2/2] tweak config --- config.jsonc | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/config.jsonc b/config.jsonc index d295fbc..20e4596 100644 --- a/config.jsonc +++ b/config.jsonc @@ -542,8 +542,8 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "sort": true }, { - "id": "batch", - "title": "Batch", + "id": "chapters", + "title": "Chapters", "type": ["string"], "autocomplete": true, "columnWidth": 80, @@ -551,15 +551,6 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "poster": true, "sort": true }, - { - "id": "editingtags", - "title": "Editing Tags", - "type": ["string"], - "autocomplete": true, - "columnWidth": 380, - "filter": true, - "sort": true - }, { "id": "tags", "title": "Tags",