Skip to content

Commit

Permalink
使用高清封面图
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaner committed Sep 17, 2019
1 parent a818416 commit 112aefa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ func metadata(videoURL string) (string, string) {
if videoid == "" {
return "Youtube Red", ""
}
thumb := fmt.Sprintf("https://i.ytimg.com/vi/%s/default.jpg", videoid)
// telegram 会自动裁剪,这里传高清封面
thumb := fmt.Sprintf("https://i.ytimg.com/vi/%s/hqdefault.jpg", videoid)
return author, thumb
}

0 comments on commit 112aefa

Please sign in to comment.