You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

video.go 953B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package data
  2. import "time"
  3. type Video struct {
  4. ID string `json:"id"`
  5. Title string `json:"title"`
  6. Description string `json:"description"`
  7. Uploader string `json:"uploader"`
  8. UploaderID string `json:"uploader_id"`
  9. UploaderURL string `json:"uploader_url"`
  10. UploadDate time.Time `json:"upload_date"`
  11. Thumbnail string `json:"thumbnail"`
  12. URL string `json:"url"`
  13. License string `json:"license,omitempty"`
  14. Genre string `json:"genre"`
  15. Tags []string `json:"tags"`
  16. Subtitles []string `json:"subtitles,omitempty"`
  17. Duration time.Duration `json:"duration"`
  18. FamilyFriendly bool `json:"family_friendly"`
  19. Views uint64 `json:"views"`
  20. Likes uint64 `json:"likes"`
  21. Dislikes uint64 `json:"dislikes"`
  22. Formats []Format `json:"formats,omitempty"`
  23. }
  24. type Subtitle struct {
  25. URL string
  26. Extension string
  27. }
  28. type Format struct {
  29. FormatID string
  30. URL string
  31. PlayerURL string
  32. Extension string
  33. Height uint32
  34. FormatNote string
  35. AudioCodec string
  36. Abr float32
  37. }