Files
MemRelay/projects/6acaea0a-2a42-470a-9bc0-528c1ae658eb/IPTV Python Web 工具.md
T
memrelay 27f8ee785a update: IPTV Python Web 工具
MemRelay-Operation: memory-save:iptv-fact-python-web-fixpath-20261113
MemRelay-Resource: eac56a84-c106-405d-a741-6508e52b74ed
2026-11-13 23:00:42 +08:00

32 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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: 3
request_id: iptv-fact-python-web-fixpath-20261113
created_at: '2026-11-13T14:13:51.725831+00:00'
updated_at: '2026-11-13T15:00:39.745525+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