How harleythetech/iptv-scanner works
iPTV-Scanner loads local or remote M3U playlists, parses their entries, probes stream endpoints, and presents and exports diagnostic results. In server mode, the browser can delegate playlist loading and scans to the Node API; browser mode probes directly. The README documents deeper HLS validation, retries, bounded reads, filtering, exports, and security behavior, though not every implementation detail was excerpted. src/runtime.js appears to be a separate browser scanner implementation; its relationship to the current UI is not established by the available evidence.
Main entry points: server.js HTTP API and static server · app.js Scanner interface · scanner.js HTTP and HLS probing · security.js Target validation
Components 10
User interface
- Scanner interface
app.js - Standalone scanner runtime
src/runtime.js
Server API
- HTTP API and static server
server.js - Target validation
src/security.js
Playlist handling
- M3U parser
src/m3u.js - M3U and CSV exports
src/m3u.js
Stream probing
- Scan orchestration
src/scanner.js - HTTP and HLS probing
src/scanner.js
Other components
- Playlist user
- Stream endpoints
Connections 13
- Playlist user → Scanner interface: loads playlist
README.md - Scanner interface → M3U parser: parses entries
app.js - Scanner interface → Scan orchestration: scans entries
app.js - Scanner interface → HTTP API and static server: requests server mode
app.js - HTTP API and static server → M3U parser: parses remote playlist
server.js - HTTP API and static server → Scan orchestration: runs scan
server.js - HTTP API and static server → Target validation: validates playlist targets
server.js - Scan orchestration → HTTP and HLS probing: dispatches probes
src/scanner.js - HTTP and HLS probing → Target validation: guards redirects
server.js - HTTP and HLS probing → Stream endpoints: probes HTTP
README.md - Scanner interface → M3U and CSV exports: builds exports
app.js - HTTP API and static server → M3U and CSV exports: builds scan exports
server.js - HTTP API and static server → Scanner interface: serves static files
server.js