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
This commit is contained in:
sebastjanartic 2025-09-06 20:14:35 +00:00
parent e0a31bba5c
commit 2a67922121

View File

@ -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)
};