How maxnasiri/iptv works
IPTV is a repository of public channel-stream links, with scripts for editing, validating, and exporting playlists and generating categorized playlist outputs and README tables. The central data layer loads and indexes IPTV metadata; stream models use those lookups to enrich and serialize stream records. The README also points users to external database and EPG projects. The available excerpts show data loading and parsing, but not CLI dispatch or the full generator invocation path, so those connections are omitted.
Main entry points: update.ts README updater · api.ts Metadata loader and index · edit.ts Playlist commands · playlistParser.ts Playlist parser
Components 25
Playlist workflow
- Playlist commands
scripts/commands/playlist/edit.ts - Playlist parser
scripts/core/playlistParser.ts
Metadata and models
- Stream model
scripts/models/stream.ts - Metadata loader and index
scripts/api.ts
Playlist generation
- Generator interface
scripts/generators/generator.ts - Category playlists
scripts/generators/categoriesGenerator.ts - Country playlists
scripts/generators/countriesGenerator.ts - Language playlists
scripts/generators/languagesGenerator.ts - Subdivision playlists
scripts/generators/subdivisionsGenerator.ts - City playlists
scripts/generators/citiesGenerator.ts - Region playlists
scripts/generators/regionsGenerator.ts - Source playlists
scripts/generators/sourcesGenerator.ts - Raw playlists
scripts/generators/rawGenerator.ts - Index playlists
scripts/generators/indexGenerator.ts - Category index
scripts/generators/indexCategoryGenerator.ts - Country index
scripts/generators/indexCountryGenerator.ts - Language index
scripts/generators/indexLanguageGenerator.ts
Tables and reports
- README updater
scripts/commands/readme/update.ts - Country table
scripts/tables/countriesTable.ts - Language table
scripts/tables/languagesTable.ts - Category and region tables
scripts/tables
External services
- IPTV SDK data manager
- iptv-org database
- EPG utilities
Other components
- Playlist users
Connections 10
- Playlist users → Playlist commands: use playlists
README.md - Playlist commands → Playlist parser: parses playlists
scripts/commands/playlist/edit.ts - Playlist parser → Stream model: creates streams
scripts/core/playlistParser.ts - Metadata loader and index → IPTV SDK data manager: loads and processes
scripts/api.ts - Stream model → Metadata loader and index: reads lookups
scripts/models/stream.ts - Playlist users → EPG utilities: download guides
README.md - Metadata loader and index → iptv-org database: uses channel data
README.md - README updater → Country table: uses tables
scripts/commands/readme/update.ts - README updater → Language table: uses tables
scripts/commands/readme/update.ts - README updater → Category and region tables: uses tables
scripts/commands/readme/update.ts