-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1338 from iAsuma/contrib
重写iXigua(Toutiao)视频获取方式
- Loading branch information
Showing
4 changed files
with
67 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package ixigua | ||
|
||
type xiguanData struct { | ||
AnyVideo struct { | ||
GidInformation struct { | ||
Gid string `json:"gid"` | ||
PackerData struct { | ||
Video struct { | ||
Title string `json:"title"` | ||
PosterUrl string `json:"poster_url"` | ||
VideoResource struct { | ||
Vid string `json:"vid"` | ||
Normal struct { | ||
VideoId string `json:"video_id"` | ||
VideoList map[string]struct { | ||
Definition string `json:"definition"` | ||
Quality string `json:"quality"` | ||
Vtype string `json:"vtype"` | ||
Vwidth int `json:"vwidth"` | ||
Vheight int `json:"vheight"` | ||
Bitrate int64 `json:"bitrate"` | ||
RealBitrate int64 `json:"real_bitrate"` | ||
Fps int `json:"fps"` | ||
CodecType string `json:"codec_type"` | ||
Size int64 `json:"size"` | ||
MainUrl string `json:"main_url"` | ||
BackupUrl1 string `json:"backup_url_1"` | ||
} `json:"video_list"` | ||
} `json:"normal"` | ||
} `json:"videoResource"` | ||
} `json:"video"` | ||
Key string `json:"key"` | ||
} `json:"packerData"` | ||
} `json:"gidInformation"` | ||
} `json:"anyVideo"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters