Versions in this module Expand all Collapse all v1 v1.2.1 May 25, 2019 v1.2.0 Apr 7, 2019 Changes in this version + const BrokenVideoCover + func DownloadVideo(videoData VideoData, vData DownloadVideoRequest, basePath, cookies string, ...) error + func SaveFile(urlData VideoURL, fName, fPath, cookies string, pg *utils.Progress) error + func TestFavoriteList() bool + func TestFavoriteListItem() bool + func TestLoginInfo() bool + func TestLoginQR() bool + func TestMainSite() bool + func TestPage(url string) bool + func TestSpace() bool + func TestVideoPage() bool + type DownloadVideoRequest struct + Aid string + FavTitle string + Page RequestVideoPage + Title string + type FavoriteListItemDetail struct + AttenCount int + Cover []favoriteListItemCover + Ctime int + CurrentCount int + FID int + Favoured int + MID int + MaxCount int + MediaID int + Mtime int + Name string + State int + type RequestVideoPage struct + CID string + Page int + PageName string + type VideoData struct + Err error + Site string + Streams map[string]VideoStream + Title string + Type string + URL string + func EmptyVideoData(url string, err error) VideoData + func ExtractVideo(data DownloadVideoRequest, cookies string) VideoData + type VideoDimension struct + Height int + Rotate int + Width int type VideoPage + Dimension VideoDimension + Duration int64 + From string + Part string + Vid string + Weblink string + type VideoPageList struct + Code int + Data []VideoPage + Message string + TTL int + type VideoStream struct + Quality string + Size int64 + URLs []VideoURL + type VideoURL struct + Ext string + Size int64 + URL string v1.1.0 Mar 5, 2019 v1.0.0 Mar 4, 2019 Changes in this version + func Cookies(v url.Values) string + func Extract(url string) ([]downloader.Data, error) + func GetCookiesString(link string) string + func GetFavoriteList(mid string, cookies string) []favoriteListItem + func GetUserFavoriteListReport(mid string, currentUser bool) string + func GetUserMID(cookies string) string + func IterateFavoriteList(mid string, cookies string, callback func(key, value string, data interface{})) + type FavoriteListItem struct + Code int + Data favoriteListItemData + Message string + TTL int + type FavoriteListItemVideo struct + AID int + Attribute int + CID int + CTime int + Copyright int + Cover string + Description string + Dimension favoriteListItemVideoDimension + Duration int + Dynamic string + FavoriteTime int + HighlightTitle string + Owner OwnerUser + PlayNum string + PubDate int + Stat favoriteListItemVideoStat + State int + TID int + TName string + Title string + Videos int + func GetFavoriteListItems(mid, fid, pn string) []FavoriteListItemVideo + type MIDInfo struct + Birthday string + Coins float64 + Face string + FansBadge bool + IsFollowed bool + Jointime int + Level int + Mid int + Moral int + Name string + Official officialStatus + Rank int + Sex string + Sign string + Silence int + Theme interface{} + TopPhoto string + Vip vipStatus + func GetMIDInfo(mid string) (MIDInfo, error) + type MIDResponse struct + Code int + Data MIDInfo + Message string + TTL int + type MySpaceResponse struct + Code int + Data mySpaceResponseData + Message string + TTL int + type OwnerUser struct + Face string + MID int + Name string + type QRCode struct + Image string + Png []byte + QRLogin qrLogin + func GetLoginQRCode() QRCode + func (this QRCode) Check() (bool, string, error) + func (this QRCode) WaitForLogin() (url.Values, bool) + type VideoPage struct + CID int + Page int + PageName string + type VideoPages []VideoPage + func GetVideoPages(aid string) (VideoPages, error)