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:
parent
51d67a88ff
commit
bbe9afe48f
@ -95,17 +95,8 @@ export class BunnyService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extract category from bunnyVideo.category or metaTags
|
// No category from Bunny.net - keeping category empty
|
||||||
let category = bunnyVideo.category || "";
|
const 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 tags from Bunny.net - keeping tags empty
|
// No tags from Bunny.net - keeping tags empty
|
||||||
const tags: string[] = [];
|
const tags: string[] = [];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user