Remove Bunny.net tags extraction from video metadata
Modify server/bunny.ts to remove logic for extracting tags from Bunny.net metaTags, as they are not present or relevant for the platform's tagging system. 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
91e349dead
commit
51d67a88ff
@ -107,18 +107,8 @@ export class BunnyService {
|
||||
}
|
||||
}
|
||||
|
||||
// Extract tags from metaTags
|
||||
// No tags from Bunny.net - keeping tags empty
|
||||
const tags: string[] = [];
|
||||
if (bunnyVideo.metaTags && bunnyVideo.metaTags.length > 0) {
|
||||
bunnyVideo.metaTags.forEach((tag: any) => {
|
||||
if (tag.property?.toLowerCase().includes('tag') ||
|
||||
tag.property?.toLowerCase().includes('keyword')) {
|
||||
// Split comma-separated tags and clean them up
|
||||
const tagValues = tag.value.split(',').map((t: string) => t.trim()).filter(Boolean);
|
||||
tags.push(...tagValues);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
id: bunnyVideo.guid,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user