Compare commits
No commits in common. "10a8892a551031b8524bf872bd16d5687743c259" and "d4372d05957d25796879399111b6f5bc53f98751" have entirely different histories.
10a8892a55
...
d4372d0595
2 changed files with 12 additions and 6 deletions
13
config.jsonc
13
config.jsonc
|
|
@ -542,8 +542,8 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
||||||
"sort": true
|
"sort": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "chapters",
|
"id": "batch",
|
||||||
"title": "Chapters",
|
"title": "Batch",
|
||||||
"type": ["string"],
|
"type": ["string"],
|
||||||
"autocomplete": true,
|
"autocomplete": true,
|
||||||
"columnWidth": 80,
|
"columnWidth": 80,
|
||||||
|
|
@ -551,6 +551,15 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
|
||||||
"poster": true,
|
"poster": true,
|
||||||
"sort": true
|
"sort": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "editingtags",
|
||||||
|
"title": "Editing Tags",
|
||||||
|
"type": ["string"],
|
||||||
|
"autocomplete": true,
|
||||||
|
"columnWidth": 380,
|
||||||
|
"filter": true,
|
||||||
|
"sort": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "tags",
|
"id": "tags",
|
||||||
"title": "Tags",
|
"title": "Tags",
|
||||||
|
|
|
||||||
|
|
@ -877,7 +877,6 @@ def shift_clips(data, offset):
|
||||||
for clip in data:
|
for clip in data:
|
||||||
clip['in'] += offset
|
clip['in'] += offset
|
||||||
clip['out'] += offset
|
clip['out'] += offset
|
||||||
return data
|
|
||||||
|
|
||||||
def scene_subtitles(scene, options):
|
def scene_subtitles(scene, options):
|
||||||
import item.models
|
import item.models
|
||||||
|
|
@ -1077,9 +1076,7 @@ def join_subtitles(base_prefix, options):
|
||||||
scenes = list(sorted(glob('%s/*/scene.json' % base_prefix)))
|
scenes = list(sorted(glob('%s/*/scene.json' % base_prefix)))
|
||||||
data = []
|
data = []
|
||||||
position = 0
|
position = 0
|
||||||
for scene_json in scenes:
|
for scene in scenes:
|
||||||
with open(scene_json) as fd:
|
|
||||||
scene = json.load(fd)
|
|
||||||
subs = scene_subtitles(scene, options)
|
subs = scene_subtitles(scene, options)
|
||||||
data += shift_clips(subs, position)
|
data += shift_clips(subs, position)
|
||||||
position += get_scene_duration(scene)
|
position += get_scene_duration(scene)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue