mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
fix path handling for gallery preview
This commit is contained in:
@@ -169,6 +169,7 @@ def register_api(app: FastAPI): # register api
|
||||
numFiles += 1
|
||||
file = os.path.relpath(f, folder)
|
||||
msg = quote(folder) + '##F##' + quote(file)
|
||||
msg = msg[:1] + ":" + msg[4:] if msg[1:4] == "%3A" else msg
|
||||
await manager.send(ws, msg)
|
||||
await manager.send(ws, '#END#')
|
||||
t1 = time.time()
|
||||
|
||||
Reference in New Issue
Block a user