we in there

This commit is contained in:
2018-05-26 00:29:32 +02:00
parent 6df24808ba
commit 103eec25f7
417 changed files with 58032 additions and 110264 deletions

View File

@@ -2,6 +2,10 @@ import sys
import json
cast=[]
Scenes = '"Scenes":{\n\t\t"0":{"SceneDescription":"NONE","lines":[]},'
if len(sys.argv) > 2:
title=sys.argv[2]
else:
title="1"
def CheckScene(sceneString):
Data = '\t\t\t"lines":[{"Character":"","Line":""},'
@@ -49,6 +53,6 @@ for member in cast:
castStr=castStr+member+'","'
castStr = castStr[:len(castStr)-2]+']'
with open(file+".json", "w+") as outfile:
outfile.write('{"'+file+'":{\n\t"Cast":['+castStr+',\n\t'+Scenes[:len(Scenes)-1]+'\n}\n}\n}')
outfile.write('{"Content":{\n\t"Cast":['+castStr+',\n\t'+Scenes[:len(Scenes)-1]+'\n\t\t}\n\t},\n\t"Title":"'+file+'"}\n')
#print(TestFromSceneOn)