iptvorg

package
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3"
View Source
const (
	IPTV_API_URL = "https://iptv-org.github.io/api"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IPTVOrgChannel

type IPTVOrgChannel struct {
	ID         string   `json:"id"`
	Name       string   `json:"name"`
	Country    string   `json:"country"`
	Categories []string `json:"categories"`
	Website    string   `json:"website,omitempty"`
}

type IPTVOrgConfig

type IPTVOrgConfig struct {
	Categories []string `json:"categories"`
	Countries  []string `json:"countries"`
	UserAgent  string   `json:"user_agent,omitempty"`
}

type IPTVOrgProvider

type IPTVOrgProvider struct {
	types.M3UProvider
	// contains filtered or unexported fields
}

func NewIPTVOrgProvider

func NewIPTVOrgProvider(config json.RawMessage) *IPTVOrgProvider

func (*IPTVOrgProvider) GetPlaylist

func (p *IPTVOrgProvider) GetPlaylist() *m3uparser.M3UPlaylist

type IPTVOrgStream

type IPTVOrgStream struct {
	Channel      string `json:"channel"`
	URL          string `json:"url"`
	Timeshift    string `json:"timeshift,omitempty"`
	HTTPReferrer string `json:"http_referrer,omitempty"`
	UserAgent    string `json:"user_agent,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL