Documentation ¶
Index ¶
- Variables
- func GenerateAndEmail(content string, level qrcode.RecoveryLevel, writer io.Writer) error
- type Archive
- type BClient
- func (client *BClient) DoGet(url string) ([]byte, error)
- func (client *BClient) GenerateQrcode() (*GenerateQrCodeResp, error)
- func (client *BClient) Get(url string) ([]byte, error)
- func (client *BClient) GetAllP(url string) (*m.BPResp[json.RawMessage], error)
- func (client *BClient) GetListAll4FavOfFolder(url string) (*m.BResp[m.BRList[json.RawMessage]], error)
- func (client *BClient) GetListAll4SpaceVideo(url string) (*m.BResp[m.BRListOfItem[json.RawMessage]], error)
- func (client *BClient) GetP(url string) ([]byte, error)
- func (client *BClient) MySpaceInfo() (*MySpaceInfoResp, error)
- func (client *BClient) MySpaceVideoInfo() (*m.BResp[SpaceVideo], error)
- func (client *BClient) MyUppersTags() (*m.BPResp[UpperTag], error)
- func (client *BClient) NavInfo() (*NavInfoResp, error)
- func (client *BClient) PlayUrl(bvid string, cid int64, qn c.Qn, fnval c.Fnval) (*m.BResp[PlayUrl], error)
- func (client *BClient) PollQrcode(qrcode string) (*PollQrCodeResp, http.Header, error)
- func (client *BClient) SeasonSection(ssID string, epID string) (*m.BRespR[SeasonInfo], error)
- func (client *BClient) SetCookie(cookie []string)
- func (client *BClient) UppersOfTag(tagid int64) (*m.BPResp[UpperInfo], error)
- func (client *BClient) UserCoined() (*m.BPResp[CoinVideo], error)
- func (client *BClient) UserFavFolders() (*m.BResp[FavFolder], error)
- func (client *BClient) UserFavOfFolder(mediaId int64) (*m.BResp[Fav], error)
- func (client *BClient) UserHistory() (*m.BResp[Histories], error)
- func (client *BClient) UserLiked() (*m.BResp[LikedVideo], error)
- func (client *BClient) VideoInfo(bvid string) (*m.BResp[VideoInfo], error)
- type Badge
- type Basic
- type CoinVideo
- type Comment
- type Cursor
- type DataItem
- type Dimension
- type Fav
- type FavFolder
- type FluffyAvatar
- type FluffyContainerSize
- type FluffyDesc
- type FluffyFallbackLayers
- type FluffyGENERALCFG
- type FluffyGeneralConfig
- type FluffyGeneralSpec
- type FluffyImageSrc
- type FluffyLabel
- type FluffyLayer
- type FluffyLayerConfig
- type FluffyLikeIcon
- type FluffyModuleAuthor
- type FluffyModuleDynamic
- type FluffyOfficialVerify
- type FluffyPendant
- type FluffyPosSpec
- type FluffyRemote
- type FluffyRenderSpec
- type FluffyResImage
- type FluffyResource
- type FluffyRichTextNode
- type FluffySizeSpec
- type FluffyTags
- type FluffyVip
- type FluffyWebCSSStyle
- type Folder
- type Forward
- type GenerateQrCodeResp
- type Height
- type Histories
- type History
- type Info
- type InfoCntInfo
- type InfoUpper
- type Label
- type Like
- type LikedVideo
- type List
- type Live
- type LoginResp
- type LoginStatus
- type Major
- type Media
- type MediaCntInfo
- type MediaUpper
- type Modal
- type ModuleMore
- type ModuleStat
- type ModuleTag
- type Modules
- type MySpaceInfoResp
- type NavInfoResp
- type OfficialVerify
- type Orig
- type OrigBasic
- type OrigModules
- type Owner
- type Params
- type PlayUrl
- type PollQrCodeResp
- type PurpleAvatar
- type PurpleContainerSize
- type PurpleDesc
- type PurpleFallbackLayers
- type PurpleGENERALCFG
- type PurpleGeneralConfig
- type PurpleImageSrc
- type PurpleLabel
- type PurpleLayer
- type PurpleLayerConfig
- type PurpleLikeIcon
- type PurpleModuleAuthor
- type PurpleModuleDynamic
- type PurpleOfficialVerify
- type PurplePendant
- type PurpleRemote
- type PurpleRenderSpec
- type PurpleResImage
- type PurpleResource
- type PurpleRichTextNode
- type PurpleSizeSpec
- type PurpleTags
- type PurpleVip
- type PurpleWebCSSStyle
- type Rights
- type SeasonInfo
- type SpaceVideo
- type Stat
- type Tab
- type ThreePointItem
- type UpperInfo
- type UpperTag
- type Video
- type VideoInfo
- type VideoStat
- type Vip
Constants ¶
This section is empty.
Variables ¶
var ( LoginSuccess = LoginStatus(0) LoginNotScan = LoginStatus(86101) LoginScanButNotConfirm = LoginStatus(86090) LoginExpired = LoginStatus(86038) )
var LogonClient = new(BClient)
LogonClient maintain logon status by scheduler job
Functions ¶
Types ¶
type Archive ¶
type Archive struct { Aid string `json:"aid"` Badge Badge `json:"badge"` Bvid string `json:"bvid"` Cover string `json:"cover"` Desc string `json:"desc"` DisablePreview int64 `json:"disable_preview"` DurationText string `json:"duration_text"` JumpURL string `json:"jump_url"` Stat VideoStat `json:"stat"` Title string `json:"title"` Type int64 `json:"type"` }
type BClient ¶
func GetLogonClient ¶
func GetLogonClientV2
deprecated
func MustLogonClient ¶
func MustLogonClient() *BClient
func (*BClient) GenerateQrcode ¶
func (client *BClient) GenerateQrcode() (*GenerateQrCodeResp, error)
GenerateQrcode https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/login/login_action/QR.md
func (*BClient) GetListAll4FavOfFolder ¶
func (*BClient) GetListAll4SpaceVideo ¶
func (client *BClient) GetListAll4SpaceVideo(url string) (*m.BResp[m.BRListOfItem[json.RawMessage]], error)
func (*BClient) MySpaceInfo ¶
func (client *BClient) MySpaceInfo() (*MySpaceInfoResp, error)
func (*BClient) MySpaceVideoInfo ¶
func (client *BClient) MySpaceVideoInfo() (*m.BResp[SpaceVideo], error)
func (*BClient) MyUppersTags ¶
MyUppersTags 返回关注UP主的标签 https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/user/relation.md#%E6%9F%A5%E8%AF%A2%E5%85%B3%E6%B3%A8%E5%88%86%E7%BB%84%E5%88%97%E8%A1%A8
func (*BClient) NavInfo ¶
func (client *BClient) NavInfo() (*NavInfoResp, error)
func (*BClient) PollQrcode ¶
PollQrcode https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/login/login_action/QR.md
func (*BClient) SeasonSection ¶
func (*BClient) UppersOfTag ¶
UppersOfTag 获取当前登录用户当前分组下的UP主列表 https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/user/relation.md#%E6%9F%A5%E8%AF%A2%E5%85%B3%E6%B3%A8%E5%88%86%E7%BB%84%E6%98%8E%E7%BB%86
func (*BClient) UserCoined ¶
UserCoined 查询用户最近投币视频 https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/user/space.md#%E6%9F%A5%E8%AF%A2%E7%94%A8%E6%88%B7%E6%9C%80%E8%BF%91%E6%8A%95%E5%B8%81%E8%A7%86%E9%A2%91web
func (*BClient) UserFavFolders ¶
UserFavFolders 获取指定用户创建的所有收藏夹信息 https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/fav/info.md#%E8%8E%B7%E5%8F%96%E6%8C%87%E5%AE%9A%E7%94%A8%E6%88%B7%E5%88%9B%E5%BB%BA%E7%9A%84%E6%89%80%E6%9C%89%E6%94%B6%E8%97%8F%E5%A4%B9%E4%BF%A1%E6%81%AF
func (*BClient) UserFavOfFolder ¶
UserFavOfFolder 获取收藏夹内容明细列表 https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/fav/list.md#%E8%8E%B7%E5%8F%96%E6%94%B6%E8%97%8F%E5%A4%B9%E5%86%85%E5%AE%B9%E6%98%8E%E7%BB%86%E5%88%97%E8%A1%A8
func (*BClient) UserHistory ¶
UserHistory 获取当前登录用户当天的历史记录 https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/history&toview/history.md#%E8%8E%B7%E5%8F%96%E5%8E%86%E5%8F%B2%E8%AE%B0%E5%BD%95%E5%88%97%E8%A1%A8_web%E7%AB%AF
func (*BClient) UserLiked ¶
func (client *BClient) UserLiked() (*m.BResp[LikedVideo], error)
UserLiked 查询用户最近点赞视频( https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/user/space.md#%E6%9F%A5%E8%AF%A2%E7%94%A8%E6%88%B7%E6%9C%80%E8%BF%91%E7%82%B9%E8%B5%9E%E8%A7%86%E9%A2%91web
type Basic ¶
type Basic struct { CommentIDStr string `json:"comment_id_str"` CommentType int64 `json:"comment_type"` LikeIcon PurpleLikeIcon `json:"like_icon"` RidStr string `json:"rid_str"` }
type CoinVideo ¶
type CoinVideo struct { Aid int64 `json:"aid"` Attribute int64 `json:"attribute"` Bvid string `json:"bvid"` Cid int64 `json:"cid"` Coins int64 `json:"coins"` Copyright int64 `json:"copyright"` Ctime int64 `json:"ctime"` Desc string `json:"desc"` Dimension Dimension `json:"dimension"` Duration int64 `json:"duration"` Dynamic string `json:"dynamic"` InterVideo bool `json:"inter_video"` IP string `json:"ip"` MissionID int64 `json:"mission_id"` Owner Owner `json:"owner"` Pic string `json:"pic"` Pubdate int64 `json:"pubdate"` Rights Rights `json:"rights"` Stat Stat `json:"stat"` State int64 `json:"state"` Tid int64 `json:"tid"` Time int64 `json:"time"` Title string `json:"title"` Tname string `json:"tname"` Videos int64 `json:"videos"` }
type FluffyAvatar ¶
type FluffyAvatar struct { ContainerSize FluffyContainerSize `json:"container_size"` FallbackLayers FluffyFallbackLayers `json:"fallback_layers"` Mid string `json:"mid"` }
type FluffyContainerSize ¶
type FluffyDesc ¶
type FluffyDesc struct { RichTextNodes []FluffyRichTextNode `json:"rich_text_nodes"` Text string `json:"text"` }
type FluffyFallbackLayers ¶
type FluffyFallbackLayers struct { IsCriticalGroup bool `json:"is_critical_group"` Layers []FluffyLayer `json:"layers"` }
type FluffyGENERALCFG ¶
type FluffyGENERALCFG struct { ConfigType int64 `json:"config_type"` GeneralConfig FluffyGeneralConfig `json:"general_config"` }
type FluffyGeneralConfig ¶
type FluffyGeneralConfig struct {
WebCSSStyle FluffyWebCSSStyle `json:"web_css_style"`
}
type FluffyGeneralSpec ¶
type FluffyGeneralSpec struct { PosSpec FluffyPosSpec `json:"pos_spec"` RenderSpec FluffyRenderSpec `json:"render_spec"` SizeSpec FluffySizeSpec `json:"size_spec"` }
type FluffyImageSrc ¶
type FluffyImageSrc struct { Local int64 `json:"local"` Placeholder *int64 `json:"placeholder,omitempty"` Remote *FluffyRemote `json:"remote,omitempty"` SrcType int64 `json:"src_type"` }
type FluffyLabel ¶
type FluffyLabel struct { BgColor string `json:"bg_color"` BgStyle int64 `json:"bg_style"` BorderColor string `json:"border_color"` ImgLabelURIHans string `json:"img_label_uri_hans"` ImgLabelURIHansStatic string `json:"img_label_uri_hans_static"` ImgLabelURIHant string `json:"img_label_uri_hant"` ImgLabelURIHantStatic string `json:"img_label_uri_hant_static"` LabelTheme string `json:"label_theme"` Path string `json:"path"` Text string `json:"text"` TextColor string `json:"text_color"` UseImgLabel bool `json:"use_img_label"` }
type FluffyLayer ¶
type FluffyLayer struct { GeneralSpec FluffyGeneralSpec `json:"general_spec"` LayerConfig FluffyLayerConfig `json:"layer_config"` Resource FluffyResource `json:"resource"` Visible bool `json:"visible"` }
type FluffyLayerConfig ¶
type FluffyLayerConfig struct { IsCritical *bool `json:"is_critical,omitempty"` Tags FluffyTags `json:"tags"` }
type FluffyLikeIcon ¶
type FluffyModuleAuthor ¶
type FluffyModuleAuthor struct { Avatar FluffyAvatar `json:"avatar"` Face string `json:"face"` FaceNft bool `json:"face_nft"` Following interface{} `json:"following"` JumpURL string `json:"jump_url"` Label string `json:"label"` Mid int64 `json:"mid"` Name string `json:"name"` OfficialVerify FluffyOfficialVerify `json:"official_verify"` Pendant FluffyPendant `json:"pendant"` PubAction string `json:"pub_action"` PubTime string `json:"pub_time"` PubTs int64 `json:"pub_ts"` Type string `json:"type"` Vip FluffyVip `json:"vip"` }
type FluffyModuleDynamic ¶
type FluffyModuleDynamic struct { Additional interface{} `json:"additional"` Desc FluffyDesc `json:"desc"` Major Major `json:"major"` Topic interface{} `json:"topic"` }
type FluffyOfficialVerify ¶
type FluffyPendant ¶
type FluffyPosSpec ¶
type FluffyRemote ¶
type FluffyRenderSpec ¶
type FluffyRenderSpec struct {
Opacity int64 `json:"opacity"`
}
type FluffyResImage ¶
type FluffyResImage struct {
ImageSrc FluffyImageSrc `json:"image_src"`
}
type FluffyResource ¶
type FluffyResource struct { ResImage FluffyResImage `json:"res_image"` ResType int64 `json:"res_type"` }
type FluffyRichTextNode ¶
type FluffySizeSpec ¶
type FluffyTags ¶
type FluffyTags struct { AvatarLayer map[string]interface{} `json:"AVATAR_LAYER,omitempty"` GeneralCFG FluffyGENERALCFG `json:"GENERAL_CFG"` IconLayer map[string]interface{} `json:"ICON_LAYER"` }
type FluffyVip ¶
type FluffyVip struct { AvatarSubscript int64 `json:"avatar_subscript"` AvatarSubscriptURL string `json:"avatar_subscript_url"` DueDate int64 `json:"due_date"` Label FluffyLabel `json:"label"` NicknameColor string `json:"nickname_color"` Status int64 `json:"status"` ThemeType int64 `json:"theme_type"` Type int64 `json:"type"` }
type FluffyWebCSSStyle ¶
type GenerateQrCodeResp ¶
type Info ¶
type Info struct { Attr int64 `json:"attr"` CntInfo InfoCntInfo `json:"cnt_info"` Cover string `json:"cover"` CoverType int64 `json:"cover_type"` Ctime int64 `json:"ctime"` FavState int64 `json:"fav_state"` Fid int64 `json:"fid"` ID int64 `json:"id"` Intro string `json:"intro"` LikeState int64 `json:"like_state"` MediaCount int64 `json:"media_count"` Mid int64 `json:"mid"` Mtime int64 `json:"mtime"` State int64 `json:"state"` Title string `json:"title"` Type int64 `json:"type"` Upper InfoUpper `json:"upper"` }
type InfoCntInfo ¶
type LikedVideo ¶
type LikedVideo struct {
List []Video `json:"list"`
}
type List ¶
type List struct { AuthorFace string `json:"author_face"` AuthorMid int64 `json:"author_mid"` AuthorName string `json:"author_name"` Badge string `json:"badge"` Cover string `json:"cover"` Covers interface{} `json:"covers"` Current string `json:"current"` Duration int64 `json:"duration"` History History `json:"history"` IsFav int64 `json:"is_fav"` IsFinish int64 `json:"is_finish"` Kid int64 `json:"kid"` LiveStatus int64 `json:"live_status"` LongTitle string `json:"long_title"` NewDesc string `json:"new_desc"` Progress int64 `json:"progress"` ShowTitle string `json:"show_title"` TagName string `json:"tag_name"` Title string `json:"title"` Total int64 `json:"total"` URI string `json:"uri"` Videos int64 `json:"videos"` ViewAt int64 `json:"view_at"` }
type LoginResp ¶
type LoginResp struct { LoginStatus LoginStatus Cookie []string }
type LoginStatus ¶
type LoginStatus int
type Media ¶
type Media struct { Attr int64 `json:"attr"` BvID string `json:"bv_id"` Bvid string `json:"bvid"` CntInfo MediaCntInfo `json:"cnt_info"` Cover string `json:"cover"` Ctime int64 `json:"ctime"` Duration int64 `json:"duration"` FavTime int64 `json:"fav_time"` ID int64 `json:"id"` Intro string `json:"intro"` Link string `json:"link"` Page int64 `json:"page"` Pubtime int64 `json:"pubtime"` Season interface{} `json:"season"` Title string `json:"title"` Type int64 `json:"type"` Upper MediaUpper `json:"upper"` }
type MediaCntInfo ¶
type MediaUpper ¶
type ModuleMore ¶
type ModuleMore struct {
ThreePointItems []ThreePointItem `json:"three_point_items"`
}
type ModuleStat ¶
type Modules ¶
type Modules struct { ModuleAuthor PurpleModuleAuthor `json:"module_author"` ModuleDynamic PurpleModuleDynamic `json:"module_dynamic"` ModuleMore ModuleMore `json:"module_more"` ModuleStat ModuleStat `json:"module_stat"` ModuleTag ModuleTag `json:"module_tag"` }
type MySpaceInfoResp ¶
type MySpaceInfoResp struct { Code int `json:"code"` Message string `json:"message"` TTL int `json:"ttl"` Data struct { Mid int `json:"mid"` Name string `json:"name"` Sex string `json:"sex"` Face string `json:"face"` Sign string `json:"sign"` Rank int `json:"rank"` Level int `json:"level"` Jointime int `json:"jointime"` Moral int `json:"moral"` Silence int `json:"silence"` EmailStatus int `json:"email_status"` TelStatus int `json:"tel_status"` Identification int `json:"identification"` Vip struct { Type int `json:"type"` Status int `json:"status"` DueDate int64 `json:"due_date"` VipPayType int `json:"vip_pay_type"` ThemeType int `json:"theme_type"` Label struct { Path string `json:"path"` Text string `json:"text"` LabelTheme string `json:"label_theme"` TextColor string `json:"text_color"` BgStyle int `json:"bg_style"` BgColor string `json:"bg_color"` BorderColor string `json:"border_color"` UseImgLabel bool `json:"use_img_label"` ImgLabelURIHans string `json:"img_label_uri_hans"` ImgLabelURIHant string `json:"img_label_uri_hant"` ImgLabelURIHansStatic string `json:"img_label_uri_hans_static"` ImgLabelURIHantStatic string `json:"img_label_uri_hant_static"` } `json:"label"` AvatarSubscript int `json:"avatar_subscript"` NicknameColor string `json:"nickname_color"` Role int `json:"role"` AvatarSubscriptURL string `json:"avatar_subscript_url"` TvVipStatus int `json:"tv_vip_status"` TvVipPayType int `json:"tv_vip_pay_type"` } `json:"vip"` Pendant struct { Pid int `json:"pid"` Name string `json:"name"` Image string `json:"image"` Expire int `json:"expire"` ImageEnhance string `json:"image_enhance"` ImageEnhanceFrame string `json:"image_enhance_frame"` } `json:"pendant"` Nameplate struct { Nid int `json:"nid"` Name string `json:"name"` Image string `json:"image"` ImageSmall string `json:"image_small"` Level string `json:"level"` Condition string `json:"condition"` } `json:"nameplate"` Official struct { Role int `json:"role"` Title string `json:"title"` Desc string `json:"desc"` Type int `json:"type"` } `json:"official"` Birthday int `json:"birthday"` IsTourist int `json:"is_tourist"` IsFakeAccount int `json:"is_fake_account"` PinPrompting int `json:"pin_prompting"` IsDeleted int `json:"is_deleted"` InRegAudit int `json:"in_reg_audit"` IsRipUser bool `json:"is_rip_user"` Profession struct { ID int `json:"id"` Name string `json:"name"` ShowName string `json:"show_name"` IsShow int `json:"is_show"` CategoryOne string `json:"category_one"` Realname string `json:"realname"` Title string `json:"title"` Department string `json:"department"` } `json:"profession"` FaceNft int `json:"face_nft"` FaceNftNew int `json:"face_nft_new"` IsSeniorMember int `json:"is_senior_member"` Honours struct { Mid int `json:"mid"` Colour struct { Dark string `json:"dark"` Normal string `json:"normal"` } `json:"colour"` Tags interface{} `json:"tags"` } `json:"honours"` DigitalID string `json:"digital_id"` DigitalType int `json:"digital_type"` LevelExp struct { CurrentLevel int `json:"current_level"` CurrentMin int `json:"current_min"` CurrentExp int `json:"current_exp"` NextExp int `json:"next_exp"` LevelUp int64 `json:"level_up"` } `json:"level_exp"` Coins float64 `json:"coins"` Following int `json:"following"` Follower int `json:"follower"` } `json:"data"` }
type NavInfoResp ¶
type NavInfoResp struct { bool `json:"isLogin"` } `json:"data"` }IsLogin
type OfficialVerify ¶
type Orig ¶
type Orig struct {
Modules OrigModules `json:"modules"`
}
type OrigBasic ¶
type OrigBasic struct { CommentIDStr string `json:"comment_id_str"` CommentType int64 `json:"comment_type"` LikeIcon FluffyLikeIcon `json:"like_icon"` RidStr string `json:"rid_str"` }
type OrigModules ¶
type OrigModules struct {
ModuleDynamic FluffyModuleDynamic `json:"module_dynamic"`
}
type PlayUrl ¶
type PlayUrl struct { From string `json:"from"` Result string `json:"result"` Message string `json:"message"` Quality int `json:"quality"` Format string `json:"format"` Timelength int `json:"timelength"` AcceptFormat string `json:"accept_format"` AcceptDescription []string `json:"accept_description"` AcceptQuality []int `json:"accept_quality"` VideoCodecid int `json:"video_codecid"` SeekParam string `json:"seek_param"` SeekType string `json:"seek_type"` Durl []struct { Order int `json:"order"` Length int `json:"length"` Size int `json:"size"` Ahead string `json:"ahead"` Vhead string `json:"vhead"` URL string `json:"url"` BackupURL []string `json:"backup_url"` } `json:"durl"` Dash struct { Duration int `json:"duration"` MinBufferTime float64 `json:"min_buffer_time"` Video []struct { ID int `json:"id"` BaseURL string `json:"base_url"` BackupURL []string `json:"backup_url"` Bandwidth int `json:"bandwidth"` MimeType string `json:"mime_type"` Codecs string `json:"codecs"` Width int `json:"width"` Height int `json:"height"` FrameRate string `json:"frame_rate"` Sar string `json:"sar"` StartWithSap int `json:"start_with_sap"` SegmentBase struct { Initialization string `json:"initialization"` IndexRange string `json:"index_range"` } `json:"segment_base"` Codecid int `json:"codecid"` } `json:"video"` Audio []struct { ID int `json:"id"` BaseURL string `json:"base_url"` BackupURL []string `json:"backup_url"` Bandwidth int `json:"bandwidth"` MimeType string `json:"mime_type"` Codecs string `json:"codecs"` Width int `json:"width"` Height int `json:"height"` FrameRate string `json:"frame_rate"` Sar string `json:"sar"` StartWithSap int `json:"start_with_sap"` SegmentBase struct { Initialization string `json:"initialization"` IndexRange string `json:"index_range"` } `json:"segment_base"` Codecid int `json:"codecid"` } `json:"audio"` Dolby struct { Type int `json:"type"` Audio interface{} `json:"audio"` } `json:"dolby"` Flac interface{} `json:"flac"` } `json:"dash"` SupportFormats []struct { Quality int `json:"quality"` Format string `json:"format"` NewDescription string `json:"new_description"` DisplayDesc string `json:"display_desc"` Superscript string `json:"superscript"` Codecs interface{} `json:"codecs"` } `json:"support_formats"` HighFormat interface{} `json:"high_format"` LastPlayTime int `json:"last_play_time"` LastPlayCid int `json:"last_play_cid"` }
type PollQrCodeResp ¶
type PurpleAvatar ¶
type PurpleAvatar struct { ContainerSize PurpleContainerSize `json:"container_size"` FallbackLayers PurpleFallbackLayers `json:"fallback_layers"` Mid string `json:"mid"` }
type PurpleContainerSize ¶
type PurpleDesc ¶
type PurpleDesc struct { RichTextNodes []PurpleRichTextNode `json:"rich_text_nodes"` Text string `json:"text"` }
type PurpleFallbackLayers ¶
type PurpleFallbackLayers struct { IsCriticalGroup bool `json:"is_critical_group"` Layers []PurpleLayer `json:"layers"` }
type PurpleGENERALCFG ¶
type PurpleGENERALCFG struct { ConfigType int64 `json:"config_type"` GeneralConfig PurpleGeneralConfig `json:"general_config"` }
type PurpleGeneralConfig ¶
type PurpleGeneralConfig struct {
WebCSSStyle PurpleWebCSSStyle `json:"web_css_style"`
}
type PurpleImageSrc ¶
type PurpleImageSrc struct { Local int64 `json:"local"` Placeholder *int64 `json:"placeholder,omitempty"` Remote *PurpleRemote `json:"remote,omitempty"` SrcType int64 `json:"src_type"` }
type PurpleLabel ¶
type PurpleLabel struct { BgColor string `json:"bg_color"` BgStyle int64 `json:"bg_style"` BorderColor string `json:"border_color"` ImgLabelURIHans string `json:"img_label_uri_hans"` ImgLabelURIHansStatic string `json:"img_label_uri_hans_static"` ImgLabelURIHant string `json:"img_label_uri_hant"` ImgLabelURIHantStatic string `json:"img_label_uri_hant_static"` LabelTheme string `json:"label_theme"` Path string `json:"path"` Text string `json:"text"` TextColor string `json:"text_color"` UseImgLabel bool `json:"use_img_label"` }
type PurpleLayer ¶
type PurpleLayer struct { LayerConfig PurpleLayerConfig `json:"layer_config"` Resource PurpleResource `json:"resource"` Visible bool `json:"visible"` }
type PurpleLayerConfig ¶
type PurpleLayerConfig struct { IsCritical *bool `json:"is_critical,omitempty"` Tags PurpleTags `json:"tags"` }
type PurpleLikeIcon ¶
type PurpleModuleAuthor ¶
type PurpleModuleAuthor struct { Avatar PurpleAvatar `json:"avatar"` Face string `json:"face"` FaceNft bool `json:"face_nft"` Following interface{} `json:"following"` JumpURL string `json:"jump_url"` Label string `json:"label"` Mid int64 `json:"mid"` Name string `json:"name"` OfficialVerify PurpleOfficialVerify `json:"official_verify"` Pendant PurplePendant `json:"pendant"` PubAction string `json:"pub_action"` PubLocationText string `json:"pub_location_text"` PubTime string `json:"pub_time"` PubTs int64 `json:"pub_ts"` Type string `json:"type"` Vip PurpleVip `json:"vip"` }
type PurpleModuleDynamic ¶
type PurpleModuleDynamic struct { Additional interface{} `json:"additional"` Desc PurpleDesc `json:"desc"` Major interface{} `json:"major"` Topic interface{} `json:"topic"` }
type PurpleOfficialVerify ¶
type PurplePendant ¶
type PurpleRemote ¶
type PurpleRenderSpec ¶
type PurpleRenderSpec struct {
Opacity int64 `json:"opacity"`
}
type PurpleResImage ¶
type PurpleResImage struct {
ImageSrc PurpleImageSrc `json:"image_src"`
}
type PurpleResource ¶
type PurpleResource struct { ResImage PurpleResImage `json:"res_image"` ResType int64 `json:"res_type"` }
type PurpleRichTextNode ¶
type PurpleSizeSpec ¶
type PurpleTags ¶
type PurpleTags struct { AvatarLayer map[string]interface{} `json:"AVATAR_LAYER,omitempty"` GeneralCFG PurpleGENERALCFG `json:"GENERAL_CFG"` IconLayer map[string]interface{} `json:"ICON_LAYER"` }
type PurpleVip ¶
type PurpleVip struct { AvatarSubscript int64 `json:"avatar_subscript"` AvatarSubscriptURL string `json:"avatar_subscript_url"` DueDate int64 `json:"due_date"` Label PurpleLabel `json:"label"` NicknameColor string `json:"nickname_color"` Status int64 `json:"status"` ThemeType int64 `json:"theme_type"` Type int64 `json:"type"` }
type PurpleWebCSSStyle ¶
type Rights ¶
type Rights struct { ArcPay int64 `json:"arc_pay"` Autoplay int64 `json:"autoplay"` Bp int64 `json:"bp"` Download int64 `json:"download"` Elec int64 `json:"elec"` Hd5 int64 `json:"hd5"` IsCooperation int64 `json:"is_cooperation"` Movie int64 `json:"movie"` NoBackground int64 `json:"no_background"` NoReprint int64 `json:"no_reprint"` Pay int64 `json:"pay"` PayFreeWatch int64 `json:"pay_free_watch"` UgcPay int64 `json:"ugc_pay"` UgcPayPreview int64 `json:"ugc_pay_preview"` }
type SeasonInfo ¶
type SeasonInfo struct { Activity struct { HeadBgURL string `json:"head_bg_url"` ID int `json:"id"` Title string `json:"title"` } `json:"activity"` Alias string `json:"alias"` Areas []struct { ID int `json:"id"` Name string `json:"name"` } `json:"areas"` BkgCover string `json:"bkg_cover"` Cover string `json:"cover"` Episodes []struct { Aid int `json:"aid"` Badge string `json:"badge"` BadgeInfo struct { BgColor string `json:"bg_color"` BgColorNight string `json:"bg_color_night"` Text string `json:"text"` } `json:"badge_info"` BadgeType int `json:"badge_type"` Bvid string `json:"bvid"` Cid int `json:"cid"` Cover string `json:"cover"` Dimension struct { Height int `json:"height"` Rotate int `json:"rotate"` Width int `json:"width"` } `json:"dimension"` Duration int `json:"duration"` From string `json:"from"` ID int `json:"id"` IsViewHide bool `json:"is_view_hide"` Link string `json:"link"` LongTitle string `json:"long_title"` PubTime int `json:"pub_time"` Pv int `json:"pv"` ReleaseDate string `json:"release_date"` Rights struct { AllowDemand int `json:"allow_demand"` AllowDm int `json:"allow_dm"` AllowDownload int `json:"allow_download"` AreaLimit int `json:"area_limit"` } `json:"rights"` ShareCopy string `json:"share_copy"` ShareURL string `json:"share_url"` ShortLink string `json:"short_link"` Skip struct { Ed struct { End int `json:"end"` Start int `json:"start"` } `json:"ed"` Op struct { End int `json:"end"` Start int `json:"start"` } `json:"op"` } `json:"skip"` Status int `json:"status"` Subtitle string `json:"subtitle"` Title string `json:"title"` Vid string `json:"vid"` } `json:"episodes"` Evaluate string `json:"evaluate"` Freya struct { BubbleDesc string `json:"bubble_desc"` BubbleShowCnt int `json:"bubble_show_cnt"` IconShow int `json:"icon_show"` } `json:"freya"` JpTitle string `json:"jp_title"` Link string `json:"link"` MediaID int `json:"media_id"` Mode int `json:"mode"` NewEp struct { Desc string `json:"desc"` ID int `json:"id"` IsNew int `json:"is_new"` Title string `json:"title"` } `json:"new_ep"` Positive struct { ID int `json:"id"` Title string `json:"title"` } `json:"positive"` Publish struct { IsFinish int `json:"is_finish"` IsStarted int `json:"is_started"` PubTime string `json:"pub_time"` PubTimeShow string `json:"pub_time_show"` UnknowPubDate int `json:"unknow_pub_date"` Weekday int `json:"weekday"` } `json:"publish"` Rating struct { Count int `json:"count"` Score float64 `json:"score"` } `json:"rating"` Record string `json:"record"` Rights struct { AllowBp int `json:"allow_bp"` AllowBpRank int `json:"allow_bp_rank"` AllowDownload int `json:"allow_download"` AllowReview int `json:"allow_review"` AreaLimit int `json:"area_limit"` BanAreaShow int `json:"ban_area_show"` CanWatch int `json:"can_watch"` Copyright string `json:"copyright"` ForbidPre int `json:"forbid_pre"` FreyaWhite int `json:"freya_white"` IsCoverShow int `json:"is_cover_show"` IsPreview int `json:"is_preview"` OnlyVipDownload int `json:"only_vip_download"` Resource string `json:"resource"` WatchPlatform int `json:"watch_platform"` } `json:"rights"` SeasonID int `json:"season_id"` SeasonTitle string `json:"season_title"` Seasons []struct { Badge string `json:"badge"` BadgeInfo struct { BgColor string `json:"bg_color"` BgColorNight string `json:"bg_color_night"` Text string `json:"text"` } `json:"badge_info"` BadgeType int `json:"badge_type"` Cover string `json:"cover"` HorizontalCover1610 string `json:"horizontal_cover_1610"` HorizontalCover169 string `json:"horizontal_cover_169"` MediaID int `json:"media_id"` NewEp struct { Cover string `json:"cover"` ID int `json:"id"` IndexShow string `json:"index_show"` } `json:"new_ep"` SeasonID int `json:"season_id"` SeasonTitle string `json:"season_title"` SeasonType int `json:"season_type"` Stat struct { Favorites int `json:"favorites"` SeriesFollow int `json:"series_follow"` Views int `json:"views"` } `json:"stat"` } `json:"seasons"` Section []struct { Attr int `json:"attr"` EpisodeID int `json:"episode_id"` EpisodeIds []interface{} `json:"episode_ids"` Episodes []struct { Aid int `json:"aid"` Badge string `json:"badge"` BadgeInfo struct { BgColor string `json:"bg_color"` BgColorNight string `json:"bg_color_night"` Text string `json:"text"` } `json:"badge_info"` BadgeType int `json:"badge_type"` Bvid string `json:"bvid"` Cid int `json:"cid"` Cover string `json:"cover"` Dimension struct { Height int `json:"height"` Rotate int `json:"rotate"` Width int `json:"width"` } `json:"dimension"` Duration int `json:"duration"` From string `json:"from"` ID int `json:"id"` IsViewHide bool `json:"is_view_hide"` Link string `json:"link"` LongTitle string `json:"long_title"` PubTime int `json:"pub_time"` Pv int `json:"pv"` ReleaseDate string `json:"release_date"` Rights struct { AllowDemand int `json:"allow_demand"` AllowDm int `json:"allow_dm"` AllowDownload int `json:"allow_download"` AreaLimit int `json:"area_limit"` } `json:"rights"` ShareCopy string `json:"share_copy"` ShareURL string `json:"share_url"` ShortLink string `json:"short_link"` Skip struct { Ed struct { End int `json:"end"` Start int `json:"start"` } `json:"ed"` Op struct { End int `json:"end"` Start int `json:"start"` } `json:"op"` } `json:"skip"` Stat struct { Coin int `json:"coin"` Danmakus int `json:"danmakus"` Likes int `json:"likes"` Play int `json:"play"` Reply int `json:"reply"` } `json:"stat"` Status int `json:"status"` Subtitle string `json:"subtitle"` Title string `json:"title"` Vid string `json:"vid"` } `json:"episodes"` ID int `json:"id"` Title string `json:"title"` Type int `json:"type"` } `json:"section"` Series struct { DisplayType int `json:"display_type"` SeriesID int `json:"series_id"` SeriesTitle string `json:"series_title"` } `json:"series"` Show struct { WideScreen int `json:"wide_screen"` } `json:"show"` ShowSeasonType int `json:"show_season_type"` SquareCover string `json:"square_cover"` Stat struct { Coins int `json:"coins"` Danmakus int `json:"danmakus"` Favorite int `json:"favorite"` Favorites int `json:"favorites"` Likes int `json:"likes"` Reply int `json:"reply"` Share int `json:"share"` Views int `json:"views"` } `json:"stat"` Status int `json:"status"` Subtitle string `json:"subtitle"` Title string `json:"title"` Total int `json:"total"` Type int `json:"type"` UpInfo struct { Avatar string `json:"avatar"` AvatarSubscriptURL string `json:"avatar_subscript_url"` Follower int `json:"follower"` IsFollow int `json:"is_follow"` Mid int `json:"mid"` NicknameColor string `json:"nickname_color"` Pendant struct { Image string `json:"image"` Name string `json:"name"` Pid int `json:"pid"` } `json:"pendant"` ThemeType int `json:"theme_type"` Uname string `json:"uname"` VerifyType int `json:"verify_type"` VipLabel struct { BgColor string `json:"bg_color"` BgStyle int `json:"bg_style"` BorderColor string `json:"border_color"` Text string `json:"text"` TextColor string `json:"text_color"` } `json:"vip_label"` VipStatus int `json:"vip_status"` VipType int `json:"vip_type"` } `json:"up_info"` UserStatus struct { AreaLimit int `json:"area_limit"` BanAreaShow int `json:"ban_area_show"` Follow int `json:"follow"` FollowStatus int `json:"follow_status"` Login int `json:"login"` Pay int `json:"pay"` PayPackPaid int `json:"pay_pack_paid"` Sponsor int `json:"sponsor"` } `json:"user_status"` }
type SpaceVideo ¶
type Stat ¶
type Stat struct { Aid int64 `json:"aid"` Coin int64 `json:"coin"` Danmaku int64 `json:"danmaku"` Dislike int64 `json:"dislike"` Favorite int64 `json:"favorite"` HisRank int64 `json:"his_rank"` Like int64 `json:"like"` NowRank int64 `json:"now_rank"` Reply int64 `json:"reply"` View int64 `json:"view"` VT int64 `json:"vt"` Vv int64 `json:"vv"` }
type ThreePointItem ¶
type UpperInfo ¶
type UpperInfo struct { Attribute int64 `json:"attribute"` ContractInfo map[string]interface{} `json:"contract_info"` Face string `json:"face"` FaceNft int64 `json:"face_nft"` Live Live `json:"live"` Mid int64 `json:"mid"` NftIcon string `json:"nft_icon"` OfficialVerify OfficialVerify `json:"official_verify"` RecReason string `json:"rec_reason"` Sign string `json:"sign"` Special int64 `json:"special"` Tag interface{} `json:"tag"` TrackID string `json:"track_id"` Uname string `json:"uname"` Vip Vip `json:"vip"` }
type Video ¶
type Video struct { Aid int64 `json:"aid"` Bvid string `json:"bvid"` Cid int64 `json:"cid"` Copyright int64 `json:"copyright"` Cover43 string `json:"cover43"` Ctime int64 `json:"ctime"` Desc string `json:"desc"` Dimension Dimension `json:"dimension"` Duration int64 `json:"duration"` Dynamic string `json:"dynamic"` EnableVT int64 `json:"enable_vt"` FirstFrame string `json:"first_frame"` InterVideo bool `json:"inter_video"` MissionID int64 `json:"mission_id"` Owner Owner `json:"owner"` Pic string `json:"pic"` PubLocation string `json:"pub_location"` Pubdate int64 `json:"pubdate"` ResourceType string `json:"resource_type"` Rights Rights `json:"rights"` SeasonID int64 `json:"season_id"` ShortLinkV2 string `json:"short_link_v2"` Stat Stat `json:"stat"` State int64 `json:"state"` Subtitle string `json:"subtitle"` Tid int64 `json:"tid"` Title string `json:"title"` Tname string `json:"tname"` UpFromV2 int64 `json:"up_from_v2"` Videos int64 `json:"videos"` }
type VideoInfo ¶
type VideoInfo struct { Bvid string `json:"bvid"` Aid int `json:"aid"` Videos int `json:"videos"` Tid int `json:"tid"` Tname string `json:"tname"` Copyright int `json:"copyright"` Pic string `json:"pic"` Title string `json:"title"` Pubdate int `json:"pubdate"` Ctime int `json:"ctime"` Desc string `json:"desc"` DescV2 []struct { RawText string `json:"raw_text"` Type int `json:"type"` BizID int `json:"biz_id"` } `json:"desc_v2"` State int `json:"state"` Duration int `json:"duration"` MissionID int `json:"mission_id"` Owner struct { Mid int `json:"mid"` Name string `json:"name"` Face string `json:"face"` } `json:"owner"` Stat struct { Aid int `json:"aid"` View int `json:"view"` Danmaku int `json:"danmaku"` Reply int `json:"reply"` Favorite int `json:"favorite"` Coin int `json:"coin"` Share int `json:"share"` NowRank int `json:"now_rank"` HisRank int `json:"his_rank"` Like int `json:"like"` Dislike int `json:"dislike"` Evaluation string `json:"evaluation"` ArgueMsg string `json:"argue_msg"` } `json:"stat"` Dynamic string `json:"dynamic"` Cid int `json:"cid"` Dimension struct { Width int `json:"width"` Height int `json:"height"` Rotate int `json:"rotate"` } `json:"dimension"` Premiere interface{} `json:"premiere"` TeenageMode int `json:"teenage_mode"` IsChargeableSeason bool `json:"is_chargeable_season"` IsStory bool `json:"is_story"` NoCache bool `json:"no_cache"` Pages []struct { Cid int `json:"cid"` Page int `json:"page"` From string `json:"from"` Part string `json:"part"` Duration int `json:"duration"` Vid string `json:"vid"` Weblink string `json:"weblink"` Dimension struct { Width int `json:"width"` Height int `json:"height"` Rotate int `json:"rotate"` } `json:"dimension"` } `json:"pages"` Subtitle struct { AllowSubmit bool `json:"allow_submit"` List []interface{} `json:"list"` } `json:"subtitle"` Staff []struct { Mid int `json:"mid"` Title string `json:"title"` Name string `json:"name"` Face string `json:"face"` Vip struct { Type int `json:"type"` Status int `json:"status"` DueDate int64 `json:"due_date"` VipPayType int `json:"vip_pay_type"` ThemeType int `json:"theme_type"` Label struct { Path string `json:"path"` Text string `json:"text"` LabelTheme string `json:"label_theme"` TextColor string `json:"text_color"` BgStyle int `json:"bg_style"` BgColor string `json:"bg_color"` BorderColor string `json:"border_color"` UseImgLabel bool `json:"use_img_label"` ImgLabelURIHans string `json:"img_label_uri_hans"` ImgLabelURIHant string `json:"img_label_uri_hant"` ImgLabelURIHansStatic string `json:"img_label_uri_hans_static"` ImgLabelURIHantStatic string `json:"img_label_uri_hant_static"` } `json:"label"` AvatarSubscript int `json:"avatar_subscript"` NicknameColor string `json:"nickname_color"` Role int `json:"role"` AvatarSubscriptURL string `json:"avatar_subscript_url"` TvVipStatus int `json:"tv_vip_status"` TvVipPayType int `json:"tv_vip_pay_type"` } `json:"vip"` Official struct { Role int `json:"role"` Title string `json:"title"` Desc string `json:"desc"` Type int `json:"type"` } `json:"official"` Follower int `json:"follower"` LabelStyle int `json:"label_style"` } `json:"staff"` IsSeasonDisplay bool `json:"is_season_display"` UserGarb struct { URLImageAniCut string `json:"url_image_ani_cut"` } `json:"user_garb"` HonorReply struct { Honor []struct { Aid int `json:"aid"` Type int `json:"type"` Desc string `json:"desc"` WeeklyRecommendNum int `json:"weekly_recommend_num"` } `json:"honor"` } `json:"honor_reply"` LikeIcon string `json:"like_icon"` }
type Vip ¶
type Vip struct { AccessStatus int64 `json:"accessStatus"` AvatarSubscript int64 `json:"avatar_subscript"` AvatarSubscriptURL string `json:"avatar_subscript_url"` DueRemark string `json:"dueRemark"` Label Label `json:"label"` NicknameColor string `json:"nickname_color"` ThemeType int64 `json:"themeType"` VipDueDate int64 `json:"vipDueDate"` VipStatus int64 `json:"vipStatus"` VipStatusWarn string `json:"vipStatusWarn"` VipType int64 `json:"vipType"` }