Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Commit d7381d9

Browse files
committed
feat(release): add more release types and InEarlyAccess flag
1 parent 45252f5 commit d7381d9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

monstercat/releases.go

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ type ReleaseType string
1313

1414
// define all known release types
1515
const (
16-
ReleaseTypeSingle ReleaseType = "Single"
17-
ReleaseTypeAlbum ReleaseType = "Album"
18-
ReleaseTypePodcast ReleaseType = "Podcast"
19-
ReleaseTypeEP ReleaseType = "EP"
16+
ReleaseTypeAlbum ReleaseType = "Album"
17+
ReleaseTypeCompilation ReleaseType = "Compilation"
18+
ReleaseTypeEP ReleaseType = "EP"
19+
ReleaseTypeMixes ReleaseType = "Mixes"
20+
ReleaseTypePodcast ReleaseType = "Podcast"
21+
ReleaseTypeSingle ReleaseType = "Single"
2022
)
2123

2224
// Release represents a single release from Monstercat API
@@ -31,8 +33,9 @@ type Release struct {
3133
GenrePrimary string `json:"genrePrimary"`
3234
GenreSecondary string `json:"genreSecondary"`
3335

34-
Downloadable bool `json:"downloadable"`
35-
Streamable bool `json:"streamable"`
36+
Downloadable bool `json:"downloadable"`
37+
InEarlyAccess bool `json:"inEarlyAccess"`
38+
Streamable bool `json:"streamable"`
3639
}
3740

3841
// DownloadFormat describes in what kind of formats we can download a release

0 commit comments

Comments
 (0)