Add metadata for video content and update sync logic

Update BunnyService to include artist, filename, and episode details, and modify VideoSyncService to insert/update these new fields in the database, while also increasing the database sync timeout.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 636b67ca-6f18-4eb7-b992-168c6c8b7078
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
This commit is contained in:
sebastjanartic
2025-09-06 19:51:15 +00:00
parent 56a23b142a
commit a189a60f60
2 changed files with 14 additions and 7 deletions
+6
View File
@@ -103,7 +103,11 @@ export class BunnyService {
return {
id: bunnyVideo.guid,
title: bunnyVideo.title || 'Untitled Video',
artist: null, // Extract from title if needed
description: description,
filename: bunnyVideo.title || null, // Use title as filename fallback
episodeNumber: null, // Parse from title if format detected
episodeTitle: null, // Parse from title if format detected
thumbnailUrl,
customThumbnailUrl: null,
videoUrl: hlsUrl, // Signed HLS URL
@@ -112,6 +116,8 @@ export class BunnyService {
duration: Math.floor(bunnyVideo.length || 0),
views: bunnyVideo.views || 0,
category: category,
contentType: 'video' as const,
genre: 'other' as const,
tags: tags,
isPublic: true,
uploadStatus: "completed",