Update server.py
This commit is contained in:
parent
c8bdecc8e7
commit
7d1b053ced
1 changed files with 4 additions and 2 deletions
|
@ -195,7 +195,7 @@ def relay():
|
||||||
goto = temp.split(" ")[0]
|
goto = temp.split(" ")[0]
|
||||||
prse = urlparse(goto)
|
prse = urlparse(goto)
|
||||||
extra = ""
|
extra = ""
|
||||||
qury = None
|
qury = ""
|
||||||
extracomment = goto
|
extracomment = goto
|
||||||
if prse.netloc == "" and prse.scheme == "":
|
if prse.netloc == "" and prse.scheme == "":
|
||||||
isdir = url[len(url) - 1] == "/"
|
isdir = url[len(url) - 1] == "/"
|
||||||
|
@ -227,7 +227,9 @@ def relay():
|
||||||
comment = goto
|
comment = goto
|
||||||
else:
|
else:
|
||||||
comment = " ".join(temp.split(" ")[1:])
|
comment = " ".join(temp.split(" ")[1:])
|
||||||
code += f"<p title=\"{extracomment}\"><a href=\"{goto}\">{comment} {extra}</a></p>\n"
|
if qury != "":
|
||||||
|
qury = "&query=" + quote(qury, safe='')
|
||||||
|
code += f"<p title=\"{extracomment}\"><a href=\"{goto}{qury}\">{comment} {extra}</a></p>\n"
|
||||||
elif i[0:2] == "> ":
|
elif i[0:2] == "> ":
|
||||||
code += f"<p class='greentext'>{i}</p>\n"
|
code += f"<p class='greentext'>{i}</p>\n"
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue