mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix failed to get thumbnail from rss feed
This commit is contained in:
parent
85b1dbd58a
commit
bc1c48da4b
1 changed files with 6 additions and 2 deletions
|
|
@ -160,8 +160,12 @@ const getThumbnail = (item: RssFeedItem) => {
|
|||
return item['media:thumbnail'].$.url
|
||||
}
|
||||
|
||||
return item['media:content']?.find((media) => media.$.medium === 'image')?.$
|
||||
.url
|
||||
if (item['media:content']) {
|
||||
return item['media:content'].find((media) => media.$?.medium === 'image')?.$
|
||||
.url
|
||||
}
|
||||
|
||||
return undefined
|
||||
}
|
||||
|
||||
export const fetchAndChecksum = async (url: string) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue