Improve ad loading and video title formatting for better user experience
Add a delay and width check for AdSense ad initialization in `adsense-ad.tsx` and clean video titles by removing `.mp4` extensions in `bunny.ts`. 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/HcYyIPk
This commit is contained in:
+7
-1
@@ -100,9 +100,15 @@ export class BunnyService {
|
||||
// No tags from Bunny.net - keeping tags empty
|
||||
const tags: string[] = [];
|
||||
|
||||
// Clean up title by removing .mp4 extension if present
|
||||
let cleanTitle = bunnyVideo.title || 'Untitled Video';
|
||||
if (cleanTitle.toLowerCase().endsWith('.mp4')) {
|
||||
cleanTitle = cleanTitle.slice(0, -4);
|
||||
}
|
||||
|
||||
return {
|
||||
id: bunnyVideo.guid,
|
||||
title: bunnyVideo.title || 'Untitled Video',
|
||||
title: cleanTitle,
|
||||
artist: null, // No artist data from Bunny.net
|
||||
description: description,
|
||||
filename: null, // No filename data from Bunny.net
|
||||
|
||||
Reference in New Issue
Block a user