diff --git a/src/helpers/media.ts b/src/helpers/media.ts index 85198c4..8227cd2 100644 --- a/src/helpers/media.ts +++ b/src/helpers/media.ts @@ -11,7 +11,7 @@ export const processMedia = (media: TweetMedia): APIPhoto | APIVideo | null => { } else if (media.type === 'video' || media.type === 'animated_gif') { /* Find the variant with the highest bitrate */ const bestVariant = media.video_info?.variants?.reduce?.((a, b) => - (a.bitrate ?? 0) > (b.bitrate ?? 0) ? a : b + !a.url.includes('/hevc/') && (a.bitrate ?? 0) > (b.bitrate ?? 0) ? a : b ); return { url: bestVariant?.url || '',