From 3c7aef0fa5c6e42fe2dd5b8d500fcf6ad5549706 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Thu, 4 Sep 2025 06:33:23 +0000 Subject: [PATCH] Ensure video titles and metadata reflect database edits Update video fetching logic to merge database edits with CDN content, fixing issues with displayed titles and ensuring data consistency across the platform. 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/DVlzRoR --- .replit | 2 +- client/src/components/netflix-grid.tsx | 5 ++- server/storage.ts | 51 +++++++----------------- server/videoSync.ts | 55 +++++++++++++++++++++++--- 4 files changed, 69 insertions(+), 44 deletions(-) diff --git a/.replit b/.replit index 2d8a3dc..9eb5d4c 100644 --- a/.replit +++ b/.replit @@ -40,4 +40,4 @@ args = "npm run dev" waitForPort = 5000 [agent] -integrations = ["javascript_database==1.0.0", "javascript_google_analytics==1.0.0"] +integrations = ["javascript_google_analytics==1.0.0", "javascript_database==1.0.0"] diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index 3dc6d72..da52a66 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -418,9 +418,10 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate style={{ textShadow: '4px 4px 8px rgba(0,0,0,0.8), -2px -2px 4px rgba(0,0,0,0.6)', WebkitTextStroke: '2px rgba(0,0,0,0.8)', - fontFeatureSettings: 'normal' + fontFeatureSettings: 'normal', + fontVariantNumeric: 'normal' }}> - {String(index + 1)} + {(index + 1).toString()} )} { console.log(`Fetching videos from cache: limit=${limit}, offset=${offset}, search=${search}`); - const result = videoSyncService.getVideos(limit, offset, search); + const result = await videoSyncService.getVideos(limit, offset, search); console.log(`Returning ${result.videos.length} videos from cache (age: ${result.cacheAge}ms)`); // Apply face detection data from cache @@ -808,36 +808,18 @@ class BunnyStorage implements IStorage { } async getVideo(id: string): Promise