From 0dae3f1067f7587baf6929bca6a0dbba2bc99700 Mon Sep 17 00:00:00 2001 From: Mopsalarm Date: Sat, 12 Nov 2016 12:33:05 +0100 Subject: [PATCH] nsfp, formatting --- content_types.go | 8 ++++---- stream.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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 } }