Skip to content

Commit

Permalink
Media lists must start on page 1
Browse files Browse the repository at this point in the history
  • Loading branch information
dustin committed Oct 8, 2023
1 parent 6cefeb4 commit ed3b15c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: gopro-plus
version: 0.6.6.3
version: 0.6.6.4
github: "dustin/gopro-plus"
license: BSD3
author: "Dustin Sallings"
Expand Down
2 changes: 1 addition & 1 deletion src/GoPro/Plus/Media.hs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ listAll = listWhile (const True)

-- | List all media while returned batches pass the given predicate.
listWhile :: (HasGoProAuth m, MonadIO m) => ([Medium] -> Bool) -> m [Medium]
listWhile f = Map.elems <$> dig 0 mempty
listWhile f = Map.elems <$> dig 1 mempty
where
dig n m = do
(ms, _) <- list 100 n
Expand Down

0 comments on commit ed3b15c

Please sign in to comment.