AI 生成: IPTV直播源自动采集、检测、去重工具,支持从多个公开源采集直播源,自动检测可用性,去重后输出干净的M3U播放列表。
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# -*- 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"
|
||||
}
|
||||
Reference in New Issue
Block a user