Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add has_sound attribute to image and gallery image #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions galleryImage.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ type GalleryImageInfo struct {
Score int `json:"score"` // Imgur popularity score
IsAlbum bool `json:"is_album"` // if it's an album or not
InMostViral bool `json:"in_most_viral"` // Indicates if the album is in the most viral gallery or not.
HasSound bool `json:"has_sound"` // Indicates if the video has sound.
Limit *RateLimit // Current rate limit
}

Expand Down
1 change: 1 addition & 0 deletions image.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type ImageInfo struct {
Nsfw bool `json:"nsfw"` // Indicates if the image has been marked as nsfw or not. Defaults to null if information is not available.
Vote string `json:"vote"` // The current user's vote on the album. null if not signed in, if the user hasn't voted on it, or if not submitted to the gallery.
InGallery bool `json:"in_gallery"` // True if the image has been submitted to the gallery, false if otherwise.
HasSound bool `json:"has_sound"` // Indicates if the video has sound.
Limit *RateLimit // Current rate limit
}

Expand Down
Loading