Documentation ¶
Index ¶
- func CalcSizeInByte(number float64, unit string) int64
- func GetFileExt(str string) string
- func GetH1(htmlString *string, idx int) string
- func GetLastItemString(slice []string) string
- func GetMediaType(t string) static.DataType
- func GetMeta(htmlString *string, property string) string
- func NeedDownloadList(length int) []int
- func ParseM3UMaster(master *string) ([]*static.Stream, error)
- func RemoveAdjDuplicates(slice []string) []string
- func Wrap(err error, ctx string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMediaType ¶
GetMediaType e.g. put in png get image, mp4 -> video
func NeedDownloadList ¶
NeedDownloadList return the indices of gallery that need download
func ParseM3UMaster ¶
ParseM3UMaster into static.Stream to prefill the structure returns a pre filled structure where URLs[0].URL is the media m3u URI
func RemoveAdjDuplicates ¶
RemoveAdjDuplicates of string slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.