update: IPTV Python Web 工具
MemRelay-Operation: memory-save:iptv-fact-python-web-20261113-2248 MemRelay-Resource: eac56a84-c106-405d-a741-6508e52b74ed
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
---
|
||||
title: IPTV Python Web 工具
|
||||
type: fact
|
||||
permalink: main/projects/6acaea0a-2a42-470a-9bc0-528c1ae658eb/iptv-python-web-工具
|
||||
stable_id: eac56a84-c106-405d-a741-6508e52b74ed
|
||||
scope: project
|
||||
memory_type: fact
|
||||
project_id: 6acaea0a-2a42-470a-9bc0-528c1ae658eb
|
||||
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
|
||||
status: active
|
||||
revision: 2
|
||||
request_id: iptv-fact-python-web-20261113-2248
|
||||
created_at: '2026-11-13T14:13:51.725831+00:00'
|
||||
updated_at: '2026-11-13T15:00:23.189842+00:00'
|
||||
tags:
|
||||
- IPTV
|
||||
- PotPlayer
|
||||
- 探测
|
||||
- adult
|
||||
---
|
||||
|
||||
目录:`E:\\code\\IPTV`
|
||||
|
||||
现行实现是 Python 3.12 + FastAPI,不再使用 PowerShell 探测脚本。
|
||||
|
||||
- 启动:`启动Web界面.bat` → http://127.0.0.1:8787
|
||||
- 程序:`app/`;上游:`sources/sources.json`;原始列表:`sources/raw/`;SQLite:`data/iptv.db`
|
||||
- 网页勾选频道后生成 `data/exports/已选.m3u` 并打开 PotPlayer Mini64
|
||||
- 探测:aiohttp 并发 GET Range,默认并发 160、超时 5s;按频道名去重保留最佳 URL
|
||||
- 网页「更新线路」只跑 recommend 源,会保留 probe_default=false 的大成人源行
|
||||
- 成人全量采集:`python -m app --all-enabled --include-mega --kinds adult --concurrency 160`
|
||||
- 仓库尚未 git init,不要擅自 init
|
||||
@@ -1,35 +0,0 @@
|
||||
---
|
||||
title: IPTV 可用线路探测工具
|
||||
type: fact
|
||||
permalink: main/projects/6acaea0a-2a42-470a-9bc0-528c1ae658eb/iptv-可用线路探测工具
|
||||
stable_id: eac56a84-c106-405d-a741-6508e52b74ed
|
||||
scope: project
|
||||
memory_type: fact
|
||||
project_id: 6acaea0a-2a42-470a-9bc0-528c1ae658eb
|
||||
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
|
||||
status: active
|
||||
revision: 1
|
||||
request_id: iptv-probe-tool-20261113
|
||||
created_at: '2026-11-13T14:13:51.725831+00:00'
|
||||
updated_at: '2026-11-13T14:13:51.725831+00:00'
|
||||
tags:
|
||||
- IPTV
|
||||
- PotPlayer
|
||||
- 探测
|
||||
---
|
||||
|
||||
目录:`E:\code\IPTV`
|
||||
|
||||
核心工具:
|
||||
- `Probe-Iptv.ps1`:拉取 `sources.json` 上游 → 按频道聚合候选 → 并发 HTTP 探测本机可达 → 输出 `可用-当前网络.m3u`
|
||||
- `Dedup-Iptv.ps1`:仅下载+频道名去重
|
||||
- `IptvCommon.ps1`:共用解析/去重/下载(PowerShell 5.1,UTF-8 BOM)
|
||||
- `sources.json`:上游 Git/网络地址与 recommend 合入配置
|
||||
|
||||
入口:
|
||||
- `更新可用线路.bat` → 完整拉取+探测
|
||||
- `打开电视.bat` / 桌面「PotPlayer看电视」→ 优先打开 `可用-当前网络.m3u`
|
||||
|
||||
首次全量探测(2026-11-13):1217 频道候选,2556 URL,可用 URL 2172,可用频道 1048,约 73 秒(Workers=40, TimeoutSec=5)。
|
||||
|
||||
注意:PS 5.1 下勿对 `List[object]` 使用 `@()`,改用 `.ToArray()`;`ArrayList.Add` 需 `[void]`。
|
||||
Reference in New Issue
Block a user