diff --git a/config.jsonc b/config.jsonc index 20e4596..d295fbc 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": "chapters", - "title": "Chapters", + "id": "batch", + "title": "Batch", "type": ["string"], "autocomplete": true, "columnWidth": 80, @@ -551,6 +551,15 @@ 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", diff --git a/render.py b/render.py index 16a8ac7..cbf8828 100644 --- a/render.py +++ b/render.py @@ -877,7 +877,6 @@ 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 @@ -1077,9 +1076,7 @@ def join_subtitles(base_prefix, options): scenes = list(sorted(glob('%s/*/scene.json' % base_prefix))) data = [] position = 0 - for scene_json in scenes: - with open(scene_json) as fd: - scene = json.load(fd) + for scene in scenes: subs = scene_subtitles(scene, options) data += shift_clips(subs, position) position += get_scene_duration(scene)