Documentation
¶
Index ¶
- Constants
- func DeleteChannel(id int) error
- func DeleteStatus(url any)
- func GetAllChannel() (channels []*model.Channel, err error)
- func GetChannel(channelNumber int, subNumber int) (*model.Channel, error)
- func GetChannelLiveStream(channelName string) (string, error)
- func GetLiveM3U8(youtubeURL string, proxyUrl string, Parser string) (*model.LiveInfo, error)
- func GetM3U8Content(ChannelURL string, liveM3U8 string, ProxyUrl string, Parser string, ...) (string, string, error)
- func GetVideoDuration(url string) (float64, error)
- func GetYouTubeChannelID(url string) string
- func GetYouTubeVideoID(url string) string
- func InvalidateChannelCache(channels ...string)
- func LoadChannelCache()
- func M3U8Process(playlistUrl string, data string, prefixURL string, proxyToken string, ...) string
- func M3UGenerate() (string, error)
- func PlaceHolderHLS() string
- func RealLiveM3U8(liveUrl string, proxyUrl string, Parser string) (*model.LiveInfo, error)
- func SaveChannel(channel *model.Channel) error
- func TXTGenerate() (string, error)
- func UpdateStatus(url any, status int, msg string)
- func UpdateSubChannels(parentChannel *model.Channel, liveInfo *model.LiveInfo, Parser string, ...)
- func UpdateURLCache()
- func UpdateURLCacheSingle(channel *model.Channel, bUpdateStatus bool) (*model.LiveInfo, error)
- type Dialer
- type StatusInfo
Constants ¶
View Source
const ( Unknown = iota Ok Warning Error Expired )
View Source
const DefaultUserAgent string = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
View Source
const MaxRetryCount = 5
View Source
const SALT string = "LiVeTv"
Variables ¶
This section is empty.
Functions ¶
func DeleteChannel ¶
func DeleteStatus ¶
func DeleteStatus(url any)
func GetAllChannel ¶
func GetChannelLiveStream ¶
func GetLiveM3U8 ¶
func GetM3U8Content ¶
func GetM3U8Content(ChannelURL string, liveM3U8 string, ProxyUrl string, Parser string, flags ...bool) (string, string, error)
returns: content, updated m3u8url (if needed), error
func GetVideoDuration ¶
func GetYouTubeChannelID ¶
func GetYouTubeVideoID ¶
func InvalidateChannelCache ¶
func InvalidateChannelCache(channels ...string)
func LoadChannelCache ¶
func LoadChannelCache()
func M3U8Process ¶
func M3UGenerate ¶
func PlaceHolderHLS ¶
func PlaceHolderHLS() string
func RealLiveM3U8 ¶
func SaveChannel ¶
func TXTGenerate ¶
func UpdateStatus ¶
func UpdateSubChannels ¶
func UpdateURLCache ¶
func UpdateURLCache()
Types ¶
Click to show internal directories.
Click to hide internal directories.