From 2a679221212a001bba5f35dff25ff50c9b57883c Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Sat, 6 Sep 2025 20:14:35 +0000 Subject: [PATCH] Update video data structure to align with new metadata fields Modify the BunnyService to include new metadata fields like artist, filename, episode details, and content type, and remove unused face-related fields. Replit-Commit-Author: Agent Replit-Commit-Session-Id: c5d5630c-85af-4c2b-bf4e-7e8006d34256 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/60d372ff-2c10-46c7-b01b-10c3435136b0/c5d5630c-85af-4c2b-bf4e-7e8006d34256/2sCJqjx --- server/bunny.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/server/bunny.ts b/server/bunny.ts index 7161539..3467ca3 100644 --- a/server/bunny.ts +++ b/server/bunny.ts @@ -103,15 +103,24 @@ export class BunnyService { return { id: bunnyVideo.guid, title: bunnyVideo.title || 'Untitled Video', + artist: null, // No artist data from Bunny.net description: description, + filename: null, // No filename data from Bunny.net + episodeNumber: null, // No episode number from Bunny.net + episodeTitle: null, // No episode title from Bunny.net thumbnailUrl, customThumbnailUrl: null, + faceCenterPosition: null, + facesDetected: null, + faceConfidence: null, videoUrl: hlsUrl, // Signed HLS URL videoUrlMp4: hlsUrl, // Use signed HLS URL for preview as well videoUrlIframe: iframeUrl, // iframe fallback duration: Math.floor(bunnyVideo.length || 0), views: bunnyVideo.views || 0, category: category, + contentType: "video" as const, // Default content type + genre: "other" as const, // Default genre tags: tags, isPublic: true, uploadStatus: "completed", @@ -121,9 +130,6 @@ export class BunnyService { resolution: null, format: null, encoding: null, - faceCenterPosition: null, - facesDetected: null, - faceConfidence: null, createdAt: new Date(bunnyVideo.dateUploaded), updatedAt: new Date(bunnyVideo.dateUploaded) };