Compare commits
No commits in common. "3c80c721d35f678477b70ce5d020c2dfec918f7f" and "8c618ab9888354ca287ff609ab4b79f6291de112" have entirely different histories.
3c80c721d3
...
8c618ab988
1 changed files with 2 additions and 7 deletions
|
|
@ -470,15 +470,10 @@ class Engine:
|
|||
f.write(json.dumps(videos, indent=4, sort_keys=True))
|
||||
# Get video order
|
||||
order = {video['id']: int(video['order']) for video in videos}
|
||||
code = {video['id']: video['code'] for video in videos}
|
||||
# Sort clips
|
||||
clips = sorted(
|
||||
clips,
|
||||
key=lambda clip: (
|
||||
order[clip['id'].split('/')[0]],
|
||||
ox.sort_string(code[clip['id'].split('/')[0]]),
|
||||
clip['in']
|
||||
)
|
||||
key=lambda clip: (order[clip['id'].split('/')[0]], clip['in'])
|
||||
)
|
||||
# Get and cache playlists
|
||||
self.playlists = [playlist for playlist in [{
|
||||
|
|
@ -493,7 +488,7 @@ class Engine:
|
|||
} for clip in clips if clip['value'] == storyline['name']]
|
||||
} for storyline in storylines] if playlist['clips']]
|
||||
with open(os.path.join(self.path, 'playlists.json'), 'w') as f:
|
||||
f.write(json.dumps(self.playlists, indent=4, sort_keys=True, ensure_ascii=False))
|
||||
f.write(json.dumps(self.playlists, indent=4, sort_keys=True))
|
||||
self.update_keywords()
|
||||
|
||||
def update_keywords(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue