Fixed video bitrate is not the max bitrate.

This commit is contained in:
Petrus 2021-09-12 23:06:42 +08:00 committed by GitHub
parent abc2678351
commit 36703ac923

View file

@ -203,6 +203,7 @@ func (timeline *timeline) parseTweet(id string) *Tweet {
for _, variant := range media.VideoInfo.Variants {
if variant.Bitrate > maxBitrate {
video.URL = strings.TrimSuffix(variant.URL, "?tag=10")
maxBitrate = variant.Bitrate
}
}
tw.Videos = append(tw.Videos, video)