forked from jeffreymkabot/ytdl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
thumbnail.go
21 lines (14 loc) · 827 Bytes
/
thumbnail.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package ytdl
// From http://stackoverflow.com/questions/2068344/how-do-i-get-a-youtube-video-thumbnail-from-the-youtube-api
// ThumbnailQuality is a youtube thumbnail quality option
type ThumbnailQuality string
// ThumbnailQualityHigh is the high quality thumbnail jpg
const ThumbnailQualityHigh ThumbnailQuality = "hqdefault"
// ThumbnailQualityDefault is the default quality thumbnail jpg
const ThumbnailQualityDefault ThumbnailQuality = "default"
// ThumbnailQualityMedium is the medium quality thumbnail jpg
const ThumbnailQualityMedium ThumbnailQuality = "mqdefault"
// ThumbnailQualitySD is the standard def quality thumbnail jpg
const ThumbnailQualitySD ThumbnailQuality = "sddefault"
// ThumbnailQualityMaxRes is the maximum resolution quality jpg
const ThumbnailQualityMaxRes ThumbnailQuality = "maxresdefault"