Update metadata.ts
This commit is contained in:
@@ -74,6 +74,7 @@ export function extractMetadata(soup: CheerioAPI, url: string): Metadata {
|
|||||||
const customMetadata: Record<string, string | string[]> = {};
|
const customMetadata: Record<string, string | string[]> = {};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
// TODO: remove this as it is redundant with the below implementation
|
||||||
title = soup("title").text() || null;
|
title = soup("title").text() || null;
|
||||||
description = soup('meta[name="description"]').attr("content") || null;
|
description = soup('meta[name="description"]').attr("content") || null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user