Versions in this module Expand all Collapse all v1 v1.2.1 Nov 15, 2024 v1.2.0 Nov 10, 2024 Changes in this version type Config + func DefaultConfig() *Config + func UnmarshalConfig(v *viper.Viper) (*Config, error) v1.1.0 Nov 2, 2024 Changes in this version + func FetchData(uri string) ([]byte, error) + func GetDefaultHttpClient() *http.Client + func LoadTvBoxData(uri string) ([]byte, error) + func ParseEPGConfig(r io.Reader) (*epg.EPG, error) + func ParseM3U8Config(r io.Reader) (m3u.Playlist, error) type Config + EPGOpt EPGOpt + M3UOpt M3UOpt + TvBoxMultiRepoOpt TvBoxMultiRepoOpt + TvBoxSingleRepoOpt TvBoxSingleRepoOpt + type EPGFilterType string + const EPGFilterTypeChannelID + const EPGFilterTypeProgramTitle + type EPGOpt struct + Disable bool + Filters []ArrayMixOpt + type M3UOpt struct + Disable bool + MediaPlaylistFallback MixOpt + MediaPlaylistFilters []ArrayMixOpt type SourceType + const SourceTypeEPG + const SourceTypeM3U + const SourceTypeTvBoxMulti + const SourceTypeTvBoxSingle + type TvBoxDOH struct + IPs []string + Name string + URL string + type TvBoxLive struct + EPG string + Logo string + Name string + PlayerType FlexInt + Timeout FlexInt + Type FlexInt + UA string + URL string + type TvBoxMultiRepoConfig struct + Repos []TvBoxRepoURLConfig + func LoadTvBoxMultiRepoConfig(uri string) (*TvBoxMultiRepoConfig, error) + func ParseTvBoxMultiRepoConfig(r io.Reader) (*TvBoxMultiRepoConfig, error) + type TvBoxMultiRepoOpt struct + Disable bool + IncludeSingleRepo bool + Repos []ArrayMixOpt + type TvBoxParse struct + Ext any + Name string + Type FlexInt + URL string + type TvBoxRepoConfig struct + Ads []string + DOH []TvBoxDOH + Flags []string + Lives []TvBoxLive + Logo string + Parses []TvBoxParse + Rules []TvBoxRule + Sites []TvBoxSite + Spider string + Wallpaper string + type TvBoxRepoURLConfig struct + Name string + URL string + type TvBoxRule struct + Hosts []string + Name string + Regex []string + Script []string + type TvBoxSingleRepoOpt struct + Ads []ArrayMixOpt + DOH []ArrayMixOpt + Disable bool + Fallback MixOpt + Flags []ArrayMixOpt + Lives []ArrayMixOpt + Logo MixOpt + Parses []ArrayMixOpt + Rules []ArrayMixOpt + Sites []ArrayMixOpt + Spider MixOpt + Wallpaper MixOpt + type TvBoxSite struct + API string + Changeable FlexInt + Ext any + Filterable FlexInt + Jar string + Key string + Name string + PlayerType FlexInt + QuickSearch FlexInt + Searchable FlexInt + Timeout FlexInt + Type FlexInt + type TvBoxStyle struct + Ratio float64 + Type string v1.0.0 Oct 26, 2024 Changes in this version + func LoadData(uri string) ([]byte, error) + type ArrayMixOpt struct + Exclude string + FilterBy string + Include string + type Config struct + ExternalURL string + Log LogOpt + MultiRepoOpt MultiRepoOpt + ServerPort int + SingleRepoOpt SingleRepoOpt + Sources []Source + func LoadServerConfig(cfgFile string) (*Config, error) + func (c *Config) Fixture() + type DOH struct + IPs []string + Name string + URL string + type FlexInt int + func (fi *FlexInt) UnmarshalJSON(data []byte) error + func (fi FlexInt) MarshalJSON() ([]byte, error) + type Live struct + EPG string + Logo string + Name string + PlayerType FlexInt + Timeout FlexInt + Type FlexInt + UA string + URL string + type LogOpt struct + Level int + Output string + type MixOpt struct + Disabled bool + Field string + SourceName string + type MultiRepoConfig struct + Repos []RepoURLConfig + func LoadMultiRepoConfig(uri string) (*MultiRepoConfig, error) + func ParseMultiRepoConfig(data []byte) (*MultiRepoConfig, error) + type MultiRepoOpt struct + Disable bool + IncludeSingleRepo bool + Repos []ArrayMixOpt + type Parse struct + Ext any + Name string + Type FlexInt + URL string + type RepoConfig struct + Ads []string + DOH []DOH + Flags []string + Lives []Live + Logo string + Parses []Parse + Rules []Rule + Sites []Site + Spider string + Wallpaper string + func LoadTvBoxConfig(uri string) (*RepoConfig, error) + func ParseTvBoxConfig(data []byte) (*RepoConfig, error) + type RepoURLConfig struct + Name string + URL string + type Rule struct + Hosts []string + Name string + Regex []string + Script []string + type SingleRepoOpt struct + Ads ArrayMixOpt + DOH ArrayMixOpt + Disable bool + Fallback MixOpt + Flags ArrayMixOpt + Lives ArrayMixOpt + Logo MixOpt + Parses ArrayMixOpt + Rules ArrayMixOpt + Sites ArrayMixOpt + Spider MixOpt + Wallpaper MixOpt + type Site struct + API string + Changeable FlexInt + Ext any + Filterable FlexInt + Jar string + Key string + Name string + PlayerType FlexInt + QuickSearch FlexInt + Searchable FlexInt + Timeout FlexInt + Type FlexInt + type Source struct + Interval int + Name string + Type SourceType + URL string + type SourceType string + const SourceTypeMulti + const SourceTypeSingle + type Style struct + Ratio float64 + Type string