Skip to content

Commit 371f373

Browse files
authored
Merge pull request #31 from antiss11/master
Fix png not returning from getCoverFromLink
2 parents 8d0d06b + 4c14f86 commit 371f373

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/flibustaOpdsApiHelper.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ class FlibustaOpdsApiHelper {
4949
return undefined;
5050
}
5151

52-
const result = links.find((link) => link['@_type'] === 'image/jpeg');
52+
const result = links.find(
53+
(link) => link['@_type'] === 'image/jpeg'
54+
|| link['@_type'] === 'image/png',
55+
);
5356

5457
if (isNil(result)) {
5558
return undefined;

0 commit comments

Comments
 (0)