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 801B

123456789101112131415161718192021222324252627282930
  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,omitempty"`
  16. Subtitles []string `json:"subtitles,omitempty"`
  17. Duration uint64 `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. }