Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { Title string // Used for Proxy service to generate fake response to new URL request CMD string // channel's identifier in Stalker portal LogoLink string // Link to logo Portal *Portal // Reference to portal from where this channel is taken from GenreID string // Stores genre ID (category ID) Genres *map[string]string // Stores mappings for genre ID -> genre title CMD_ID string // Used for Proxy service to generate fake response to new URL request CMD_CH_ID string // Used for Proxy service to generate fake response to new URL request }
Channel stores information about channel in Stalker portal. This is not a real TV channel representation, but details on how to retrieve a working channel's URL.
type Config ¶
type Config struct { Portal *Portal `yaml:"portal"` HLS struct { Enabled bool `yaml:"enabled"` Bind string `yaml:"bind"` } `yaml:"hls"` Proxy struct { Enabled bool `yaml:"enabled"` Bind string `yaml:"bind"` Rewrite bool `yaml:"rewrite"` } `yaml:"proxy"` }
Config contains configuration taken from the YAML file.
func ReadConfig ¶
ReadConfig returns configuration from the file in Portal object
type Portal ¶
type Portal struct { Model string `yaml:"model"` SerialNumber string `yaml:"serial_number"` DeviceID string `yaml:"device_id"` DeviceID2 string `yaml:"device_id2"` Signature string `yaml:"signature"` MAC string `yaml:"mac"` Username string `yaml:"username"` Password string `yaml:"password"` Location string `yaml:"url"` TimeZone string `yaml:"time_zone"` Token string `yaml:"token"` WatchDogTime int `yaml:"watchdog"` DeviceIdAuth bool `yaml:"device_id_auth"` }
Portal represents Stalker portal
func (*Portal) RetrieveChannels ¶
RetrieveChannels retrieves all TV channels from stalker portal.
Click to show internal directories.
Click to hide internal directories.