diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 1e4a1bce..6723fc2b 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -2,7 +2,7 @@ name: Update xiaosa on: workflow_dispatch: schedule: - - cron: "30 3 * * *" + - cron: "20 */3 * * *" push: branches: - master diff --git a/tools/fty.py b/tools/fty.py index 9a1515eb..8712007e 100644 --- a/tools/fty.py +++ b/tools/fty.py @@ -6,7 +6,7 @@ import json # 下载伪 JSON 文本 def fetch_raw_json(): url = "https://ua.fongmi.eu.org/box.php?url=https%3A%2F%2Fwww.xn--sss604efuw.com%2Ftv" - resp = requests.get(url, timeout=10) + resp = requests.get(url, timeout=30) resp.encoding = 'utf-8' return resp.text @@ -18,7 +18,7 @@ def extract_and_save_spider(json_text): full_spider = match.group(1) spider_url = full_spider.split(";")[0] print(f"📥 下载 spider 文件: {spider_url}") - resp = requests.get(spider_url, timeout=10) + resp = requests.get(spider_url, timeout=30) with open("fan.txt", "wb") as f: f.write(resp.content) print("✅ 已保存为 fan.txt")