This commit is contained in:
j 2018-11-30 09:52:22 +01:00
parent 97a65ad52d
commit 3c80c721d3

View file

@ -476,7 +476,7 @@ class Engine:
clips,
key=lambda clip: (
order[clip['id'].split('/')[0]],
ox.sort_string(code[clip['id'].split('/')[0]],
ox.sort_string(code[clip['id'].split('/')[0]]),
clip['in']
)
)
@ -493,7 +493,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))
f.write(json.dumps(self.playlists, indent=4, sort_keys=True, ensure_ascii=False))
self.update_keywords()
def update_keywords(self):