How jiotv-go/jiotv_go works
JioTV Go is a Go server and web wrapper for JioTV: users authenticate, browse channels or EPG, then play live, catch-up, or premium streams through web and IPTV-facing routes. The graph includes the CLI/server entry, distinct playback and guide stages, and the television API, credential store, URL handling, and scheduler beneath them. The README documents M3U, quality selection, and background operation; sampled excerpts do not show every route’s internal calls, so uncertain links are omitted or dashed.
Main entry points: jiotv_go.go HTTP Server · television.go JioTV API Client · auth.go Login and Tokens · epg.go Guide Generation
Components 19
Server and CLI
- CLI Commands
main.go - HTTP Server
cmd/jiotv_go.go
HTTP Workflows
- Login and Tokens
internal/handlers/auth.go - Channel and Play Routes
internal/handlers/handlers.go - Catch-up Playback
internal/handlers/catchup.go - DASH and DRM
internal/handlers/drm.go - EPG Routes
internal/handlers/epg.go - CORS Middleware
internal/middleware/cors.go
Domain Services
- JioTV API Client
pkg/television/television.go - Guide Generation
pkg/epg/epg.go - Task Scheduler
pkg/scheduler/scheduler.go - Credential Store
pkg/store/store.go - URL Encryption
pkg/secureurl/secureurl.go - HTTP Utilities
internal/utils/handlers.go - Configuration
internal/config/config.go
Web Client
- Web Interface
web/static/internal
Other components
- Viewer / Operator
- JioTV Service
- EPG Output File
Connections 27
- Viewer / Operator → CLI Commands: runs commands
main.go - CLI Commands → HTTP Server: starts server
- HTTP Server → Login and Tokens: routes requests
cmd/jiotv_go.go - HTTP Server → Channel and Play Routes: routes requests
cmd/jiotv_go.go - HTTP Server → Catch-up Playback: routes requests
cmd/jiotv_go.go - HTTP Server → DASH and DRM: routes requests
cmd/jiotv_go.go - HTTP Server → EPG Routes: routes requests
cmd/jiotv_go.go - HTTP Server → CORS Middleware: installs middleware
cmd/jiotv_go.go - Viewer / Operator → Web Interface: watches streams
README.md - Web Interface → HTTP Server: requests pages
- Login and Tokens → JioTV API Client: initializes client
internal/handlers/auth.go - Login and Tokens → Credential Store: persists credentials
- Login and Tokens → JioTV Service: requests OTP
internal/handlers/auth.go - Channel and Play Routes → JioTV API Client: fetches streams
internal/handlers/handlers.go - Channel and Play Routes → URL Encryption: decrypts URLs
internal/handlers/handlers.go - Catch-up Playback → JioTV API Client: fetches playback
internal/handlers/catchup.go - Catch-up Playback → URL Encryption: decrypts URLs
internal/handlers/catchup.go - DASH and DRM → JioTV API Client: fetches manifests
internal/handlers/drm.go - DASH and DRM → URL Encryption: decrypts URLs
internal/handlers/drm.go - EPG Routes → Guide Generation: serves guide data
internal/handlers/epg.go - Guide Generation → JioTV Service: fetches schedules
pkg/epg/epg.go - Guide Generation → Task Scheduler: schedules generation
pkg/epg/epg.go - Guide Generation → EPG Output File: writes guide
pkg/epg/epg.go - JioTV API Client → Credential Store: uses persistence
pkg/television/television.go - Credential Store → Configuration: reads path settings
pkg/store/store.go - HTTP Utilities → URL Encryption: decrypts parameters
internal/utils/handlers.go - HTTP Server → Configuration: loads settings