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