Remove category extraction from Bunny.net video metadata

Modify `server/bunny.ts` to remove the logic for extracting video category from Bunny.net metadata, defaulting to an empty string.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2eb1084e-b728-4449-9231-f1665924c8d5
Replit-Commit-Checkpoint-Type: full_checkpoint
This commit is contained in:
sebastjanartic 2025-08-28 19:02:52 +00:00
parent 51d67a88ff
commit bbe9afe48f

View File

@ -95,17 +95,8 @@ export class BunnyService {
}
}
// Extract category from bunnyVideo.category or metaTags
let category = bunnyVideo.category || "";
if (!category && bunnyVideo.metaTags && bunnyVideo.metaTags.length > 0) {
const categoryTag = bunnyVideo.metaTags.find((tag: any) =>
tag.property?.toLowerCase().includes('category') ||
tag.property?.toLowerCase().includes('genre')
);
if (categoryTag) {
category = categoryTag.value;
}
}
// No category from Bunny.net - keeping category empty
const category = "";
// No tags from Bunny.net - keeping tags empty
const tags: string[] = [];