Improve video sharing by optimizing thumbnails and meta descriptions
Update meta description for videos to include title and platform details. Implement logic to fetch and resize actual thumbnails from Bunny.net for social media sharing, using JPEG format for better quality and setting a 2-hour cache. Also, improve video not found error handling and logging. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2cd2c0bc-434c-4bc9-ad3f-b99d3897a0d1/HCAS0JG
This commit is contained in:
@@ -157,7 +157,7 @@ export default function VideoPage() {
|
||||
if (metaDescription) {
|
||||
const descriptionContent = currentVideo.description && currentVideo.description.trim() !== ''
|
||||
? currentVideo.description
|
||||
: `Schauen Sie sich "${currentVideo.title}" auf go4.video an. Professionelle Video-Streaming-Plattform mit exklusivem Content von FOLX STADL, Geschichte des Liedes und weiteren Premium-Inhalten.`;
|
||||
: `${currentVideo.title} - Professionelle Video-Streaming-Plattform mit exklusivem Content von FOLX STADL, Geschichte des Liedes und weiteren Premium-Inhalten auf go4.video.`;
|
||||
metaDescription.setAttribute('content', descriptionContent);
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ export default function VideoPage() {
|
||||
// Use original description if available, otherwise create rich description
|
||||
const richDescription = currentVideo.description && currentVideo.description.trim() !== ''
|
||||
? currentVideo.description
|
||||
: `Schauen Sie sich "${currentVideo.title}" auf go4.video an. Professionelle Video-Streaming-Plattform mit exklusivem Content von FOLX STADL, Geschichte des Liedes und weiteren Premium-Inhalten.`;
|
||||
: `${currentVideo.title} - Professionelle Video-Streaming-Plattform mit exklusivem Content von FOLX STADL, Geschichte des Liedes und weiteren Premium-Inhalten auf go4.video.`;
|
||||
|
||||
updateMetaTag('og:description', richDescription);
|
||||
// Get the correct domain dynamically and add cache-busting
|
||||
|
||||
Reference in New Issue
Block a user