# -*- coding: utf-8 -*- """配置文件""" # 采集源地址列表(公开的 IPTV 源) SOURCE_URLS = [ "https://raw.githubusercontent.com/iptv-org/iptv/master/streams/cn.m3u", "https://raw.githubusercontent.com/iptv-org/iptv/master/streams/hk.m3u", "https://raw.githubusercontent.com/iptv-org/iptv/master/streams/tw.m3u", "https://raw.githubusercontent.com/iptv-org/iptv/master/streams/us.m3u", ] # 检测配置 CHECK_TIMEOUT = 5 # 单个源检测超时时间(秒) MAX_WORKERS = 30 # 并发线程数 MIN_SPEED = 10 # 最低下载速度要求(KB/s),0 表示不限制 # 输出配置 OUTPUT_DIR = "output" OUTPUT_FILE = "playlist.m3u" # 请求头 HEADERS = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 " "(KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" }