Documentation ¶
Index ¶
- func CopyMap(m map[string]string) map[string]string
- func DownloadVideo(videoUrl string, videoId string, vFormat string, userFfmpegPath string, ...)
- func Generate(start int64) string
- func GenerateHotstarAuth() string
- func GetDateStr(timeFloat64 float64) string
- func GetMasterPlaybackUrl(playbackUriPageContents []byte) (string, error)
- func GetParsedVideoUrl(videoUrl string) string
- func GetPlaybackUri(videoUrlPageContents string, videoUrl string, videoId string) (string, map[string]string, error)
- func GetVideoFormats(videoUrl string, videoId string) (map[string]map[string]string, map[string]string, error)
- func IsValidHotstarUrl(videoUrl string) (bool, string)
- func ListVideoFormats(videoUrl string, videoId string, titleFlag bool, descriptionFlag bool)
- func MakeGetRequest(url string, headers map[string]string) ([]byte, error)
- func ParseM3u8Content(m3u8Content string, playbackUrl string, playbackUrlData string) map[string]map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadVideo ¶
func DownloadVideo(videoUrl string, videoId string, vFormat string, userFfmpegPath string, outputFileName string, metadataFlag bool)
DownloadVideo downloads the video for given video format and video url. It also adds metadata to it if needed. FFMPEG path and Output video file name can be customized.
func GenerateHotstarAuth ¶
func GenerateHotstarAuth() string
GenerateHotstarAuth generates Hotstar authorization code.
func GetDateStr ¶
GetDateStr parses given time in milliseconds to human readable Date string.
func GetMasterPlaybackUrl ¶
GetMasterPlaybackUrl gets master playback url from playback uri page contents.
func GetParsedVideoUrl ¶
GetParsedVideoUrl parses given video url for proper url scheme.
func GetPlaybackUri ¶
func GetPlaybackUri(videoUrlPageContents string, videoUrl string, videoId string) (string, map[string]string, error)
GetPlaybackUri gets the playback uri from the metadata in the given page contents.
func GetVideoFormats ¶
func GetVideoFormats(videoUrl string, videoId string) (map[string]map[string]string, map[string]string, error)
GetVideoFormats gets all available video formats for given video url.
func IsValidHotstarUrl ¶
IsValidHotstarUrl validates if the given video url is a valid Hotstar url or not.
func ListVideoFormats ¶
ListVideoFormats lists video formats (or) title (or) description of the video for given video url.
func MakeGetRequest ¶
MakeGetRequest makes GET request for given url with given headers and returns web page contents as bytes with errors if any.
Types ¶
This section is empty.