From 77685d0e8988897162be25f5606bd88173056fb4 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Tue, 17 Sep 2024 08:50:03 +0800 Subject: [PATCH] =?UTF-8?q?Update=20IPTV=E6=90=9C=E7=B4=A2=E5=BC=95?= =?UTF-8?q?=E6=93=8E=E9=87=87=E9=9B=86.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/IPTV搜索引擎采集.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/IPTV搜索引擎采集.py b/py/IPTV搜索引擎采集.py index 416663f..764eb36 100644 --- a/py/IPTV搜索引擎采集.py +++ b/py/IPTV搜索引擎采集.py @@ -102,7 +102,7 @@ def gen_files(valid_ips, province, isp): with open(txt_filename, 'a', encoding='utf-8') as new_file: new_file.write(f'{province}{isp},#genre#\n') for url in valid_ips: - if index < 10: + if index < 15: # 确保 url 是一个完整的 URL 字符串,并且以 'http://' 开头 base_url = "rtp://" if not url.startswith("http://"):