fix(dearrow): don't replace thumbnail if only original available (#1959)
This commit is contained in:
parent
dd44ac1ad2
commit
c0f786804a
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ async function embedDidMount(this: Component<Props>) {
|
||||||
embed.rawTitle = titles[0].title;
|
embed.rawTitle = titles[0].title;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (thumbnails[0]?.votes >= 0) {
|
if (thumbnails[0]?.votes >= 0 && thumbnails[0].timestamp) {
|
||||||
embed.dearrow.oldThumb = embed.thumbnail.proxyURL;
|
embed.dearrow.oldThumb = embed.thumbnail.proxyURL;
|
||||||
embed.thumbnail.proxyURL = `https://dearrow-thumb.ajay.app/api/v1/getThumbnail?videoID=${videoId}&time=${thumbnails[0].timestamp}`;
|
embed.thumbnail.proxyURL = `https://dearrow-thumb.ajay.app/api/v1/getThumbnail?videoID=${videoId}&time=${thumbnails[0].timestamp}`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue