diff --git a/server/bunny.ts b/server/bunny.ts index e29a277..0f831b2 100644 --- a/server/bunny.ts +++ b/server/bunny.ts @@ -84,13 +84,12 @@ export class BunnyService { // Extract description from BunnyVideoDetails if available let description = 'description' in bunnyVideo ? bunnyVideo.description || "" : ""; - // If no description, check metaTags for description - if (!description && bunnyVideo.metaTags && bunnyVideo.metaTags.length > 0) { + // Always check metaTags for description since Bunny.net stores it there + if (bunnyVideo.metaTags && bunnyVideo.metaTags.length > 0) { const descriptionTag = bunnyVideo.metaTags.find((tag: any) => - tag.property?.toLowerCase().includes('description') || - tag.property?.toLowerCase().includes('summary') + tag.property?.toLowerCase() === 'description' ); - if (descriptionTag) { + if (descriptionTag && descriptionTag.value) { description = descriptionTag.value; } }