Updated sideload files
YAML files are now as well added into the list
This commit is contained in:
parent
7f2a6dbff1
commit
007d1980e7
|
@ -58,6 +58,8 @@ def scanfolder(path: str) -> list:
|
||||||
sideloaddict.append(f"{modelname}.preview.jpeg")
|
sideloaddict.append(f"{modelname}.preview.jpeg")
|
||||||
if os.path.exists(f"{modelfolder}{modelname}.preview.png"):
|
if os.path.exists(f"{modelfolder}{modelname}.preview.png"):
|
||||||
sideloaddict.append(f"{modelname}.preview.png")
|
sideloaddict.append(f"{modelname}.preview.png")
|
||||||
|
if os.path.exists(f"{modelfolder}{modelname}.yaml"):
|
||||||
|
sideloaddict.append(f"{modelname}.yaml")
|
||||||
else:
|
else:
|
||||||
print(f"Model {modelfile} found on CivitAi")
|
print(f"Model {modelfile} found on CivitAi")
|
||||||
modelid = modelinfoarray.get('modelId')
|
modelid = modelinfoarray.get('modelId')
|
||||||
|
|
Loading…
Reference in New Issue