Skip to content

Commit e4b7f64

Browse files
Fix unsupported supports
1 parent 82b979e commit e4b7f64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Api/Clients/TiteLive/TiteLiveClient.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ private function makeOneBookFromTiteLiveResult(array $result): ?Book
172172
->when(isset($result['gencod']), function ($query) use ($result) {
173173
return $query->where('gencod', $result['gencod']);
174174
})
175+
->filter(function ($edition) {
176+
return in_array($edition['codesupport'] ?? [], ['T', 'P', 'BL']);
177+
})
175178
->first();
176179

177180
if (! $edition) {

0 commit comments

Comments
 (0)