mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-25 00:56:14 +08:00
添加cdn判断模块
This commit is contained in:
+2
-1
@@ -1,3 +1,4 @@
|
||||
import json
|
||||
import asyncio
|
||||
import functools
|
||||
|
||||
@@ -171,7 +172,7 @@ def request_callback(future, index, datas):
|
||||
datas[index]['alive'] = 1
|
||||
headers = resp.headers
|
||||
datas[index]['banner'] = utils.get_sample_banner(headers)
|
||||
datas[index]['header'] = str(dict(headers))[1:-1]
|
||||
datas[index]['header'] = json.dumps(dict(headers))
|
||||
if isinstance(text, str):
|
||||
title = get_title(text).strip()
|
||||
datas[index]['title'] = utils.remove_invalid_string(title)
|
||||
|
||||
Reference in New Issue
Block a user