Documentation ¶
Index ¶
- func Download(address, filePath string) (err error)
- func DownloadItem(i *models.Item, path *string) (errs map[string]error)
- func GetDashManifestBestMediaUrl(dashManifest string) (address string)
- func GetItemBestQualityUrl(i *models.Item) (info map[string]map[string]string, err error)
- func GetMediaBestQualityUrl(i interface{}) (url string, err error)
- func ShortCodeToMediaId(shortCode string) int64
- type ChallengeResponse
- type ChallengeResponseConfig
- type ChallengeResponseEntryData
- type ChallengeResponseEntryDataChallenge
- type ChallengeResponseEntryDataChallengeFields
- type ChallengeResponseEntryDataChallengeNavigation
- type ChallengeSolver
- func (ncs *ChallengeSolver) GetChallengeByUrl(address string) (response *ChallengeResponse, err error)
- func (ncs *ChallengeSolver) GetSolveChallengeByEmail(address, csrf, ajaxId string) (response *PostChallengeChoiceResponse, err error)
- func (ncs *ChallengeSolver) SolveChallenge(address, csrf, ajaxId, securityCode string) (response *SolveChallengeResponse, err error)
- type PostChallengeChoiceResponse
- type PostChallengeChoiceResponseExtraData
- type PostChallengeChoiceResponseExtraDataContent
- type SolveChallengeResponse
- type SolveChallengeResponseChallenge
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetItemBestQualityUrl ¶
func GetMediaBestQualityUrl ¶
func ShortCodeToMediaId ¶
Types ¶
type ChallengeResponse ¶
type ChallengeResponse struct { Config *ChallengeResponseConfig `json:"config"` EntryData *ChallengeResponseEntryData `json:"entry_data"` RollOutHash string `json:"rollout_hash"` }
type ChallengeResponseConfig ¶
type ChallengeResponseConfig struct {
CsrfToken string `json:"csrf_token"`
}
type ChallengeResponseEntryData ¶
type ChallengeResponseEntryData struct {
Challenge *[]ChallengeResponseEntryDataChallenge `json:"Challenge"`
}
type ChallengeResponseEntryDataChallenge ¶
type ChallengeResponseEntryDataChallenge struct { ChallengeType string `json:"challengeType"` Fields *ChallengeResponseEntryDataChallengeFields `json:"fields"` Type string `json:"type"` }
type ChallengeResponseEntryDataChallengeNavigation ¶
type ChallengeResponseEntryDataChallengeNavigation struct {}
type ChallengeSolver ¶
type ChallengeSolver struct {
// contains filtered or unexported fields
}
func NewChallengeSolver ¶
func NewChallengeSolver() *ChallengeSolver
func (*ChallengeSolver) GetChallengeByUrl ¶
func (ncs *ChallengeSolver) GetChallengeByUrl(address string) (response *ChallengeResponse, err error)
func (*ChallengeSolver) GetSolveChallengeByEmail ¶
func (ncs *ChallengeSolver) GetSolveChallengeByEmail(address, csrf, ajaxId string) (response *PostChallengeChoiceResponse, err error)
func (*ChallengeSolver) SolveChallenge ¶
func (ncs *ChallengeSolver) SolveChallenge(address, csrf, ajaxId, securityCode string) (response *SolveChallengeResponse, err error)
type PostChallengeChoiceResponse ¶
type PostChallengeChoiceResponse struct { Location string `json:"location"` ChallengeType string `json:"challengeType"` ExtraData *PostChallengeChoiceResponseExtraData `json:"extraData"` Type string `json:"type"` Status string `json:"status"` }
type PostChallengeChoiceResponseExtraData ¶
type PostChallengeChoiceResponseExtraData struct { TypeName string `json:"__typename"` Content *[]PostChallengeChoiceResponseExtraDataContent `json:"content"` }
type SolveChallengeResponse ¶
type SolveChallengeResponse struct { Message string `json:"message"` Challenge *SolveChallengeResponseChallenge `json:"challenge"` Location string `json:"location"` Type string `json:"type"` Status string `json:"status"` }
Click to show internal directories.
Click to hide internal directories.