Skip to content

Commit cd44938

Browse files
Fix unsupported supports
1 parent decb1b1 commit cd44938

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
@@ -253,6 +253,9 @@ private function makeOneBookFromTiteLiveResult(array $result): ?Book
253253
->when(isset($result['gencod']), function ($query) use ($result) {
254254
return $query->where('gencod', $result['gencod']);
255255
})
256+
->filter(function ($edition) {
257+
return in_array($edition['codesupport'] ?? [], ['T', 'P', 'BL']);
258+
})
256259
->first();
257260

258261
if (! $edition) {

0 commit comments

Comments
 (0)