fix(builder): url parsing
This commit is contained in:
parent
24e108917e
commit
9661600cc8
@ -310,12 +310,15 @@ async def build_logic(item: Item):
|
||||
"timestamp": time.time()
|
||||
}}))
|
||||
|
||||
if "Created comfyui-api =>" in l or (l.startswith("https://") and l.endswith(".modal.run")):
|
||||
if "Created comfyui-api =>" in l:
|
||||
if "Created comfyui_api =>" in l or ((l.startswith("https://") or l.startswith("│ https://")) and l.endswith(".modal.run")):
|
||||
if "Created comfyui_api =>" in l:
|
||||
url = l.split("=>")[1].strip()
|
||||
# making sure it is a url
|
||||
elif "comfyui-api" in l:
|
||||
# Some case it only prints the url on a blank line
|
||||
if l.startswith("│ https://"):
|
||||
url = l.split("│")[1].strip()
|
||||
else:
|
||||
url = l
|
||||
|
||||
if url:
|
||||
|
Loading…
x
Reference in New Issue
Block a user