diff --git a/content_types.go b/content_types.go index bc98df8..1c8dea9 100644 --- a/content_types.go +++ b/content_types.go @@ -7,10 +7,10 @@ const ( SFW ContentType = 1 NSFW ContentType = 2 NSFL ContentType = 4 - AUDIO ContentType = 8 + NSFP ContentType = 8 ) -var AllContentTypes = ContentTypes{SFW, NSFW, NSFL, AUDIO} +var AllContentTypes = ContentTypes{SFW, NSFW, NSFL, NSFP} func (types ContentTypes) AsFlags() int { var result int @@ -37,8 +37,8 @@ func ToContentTypes(flags int) ContentTypes { if flags&int(NSFL) != 0 { result = append(result, NSFL) } - if flags&int(AUDIO) != 0 { - result = append(result, AUDIO) + if flags&int(NSFP) != 0 { + result = append(result, NSFP) } return result diff --git a/stream.go b/stream.go index 2aa97a9..52cf1f8 100644 --- a/stream.go +++ b/stream.go @@ -14,7 +14,7 @@ func Stream(req ItemsRequest, consume Consumer) error { } return true, nil - }); + }) } func StreamPaged(req ItemsRequest, consume PageConsumer) error { @@ -34,7 +34,7 @@ func StreamPaged(req ItemsRequest, consume PageConsumer) error { return nil } - req.Older = items.Items[len(items.Items) - 1].Id + req.Older = items.Items[len(items.Items)-1].Id } }