remove useless code
This commit is contained in:
@ -136,7 +136,6 @@ def parse_format_default(line):
|
|||||||
def get_servers_from_subscribe_url(url):
|
def get_servers_from_subscribe_url(url):
|
||||||
servers = []
|
servers = []
|
||||||
try:
|
try:
|
||||||
host = match(r"^(?:(?:https?)|(?:file)):\/\/([\w\.]*?)(?:[\/\?\#].*)?$", url)[1]
|
|
||||||
req = request.Request(url, headers={
|
req = request.Request(url, headers={
|
||||||
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0",
|
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0",
|
||||||
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
|
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
|
||||||
|
Reference in New Issue
Block a user