feat: add ability to scrape youtube video
This commit is contained in:
@@ -55,8 +55,12 @@ export async function extractAuthorName(content: string) {
|
||||
|
||||
const author = chatCompletion.choices[0].message.content;
|
||||
|
||||
if (author !== "not found") return author;
|
||||
return "";
|
||||
if (
|
||||
author?.toLowerCase().includes("not") &&
|
||||
author?.toLowerCase().includes("found")
|
||||
) return "";
|
||||
|
||||
return author;
|
||||
}
|
||||
|
||||
export async function createTags(content: string) {
|
||||
|
||||
Reference in New Issue
Block a user