Skip to content

Commit 2832739

Browse files
Fix ListBooks count bug
1 parent afb374d commit 2832739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Api/ListBooks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function execute()
3636
return app(BookDirectoryClient::class)
3737
->setParam(BookDirectoryClient::SEARCH_AVAILABILITY, $this->withUnavailable ? 'all' : 'available')
3838
->setParam(BookDirectoryClient::SEARCH_PAGE, $this->page)
39-
->setParam(BookDirectoryClient::SEARCH_TOTAL_COUNT, $this->count)
39+
->setParam(BookDirectoryClient::SEARCH_TOTAL_COUNT, $this->count + 1) // add one because these dumb*ss at Titelive count from one I guess ?
4040
->setParam(BookDirectoryClient::CATEGORY_CODES, $this->categoryCode)
4141
->doSearch(groupEditions: true);
4242
}

0 commit comments

Comments
 (0)