diff --git a/README.md b/README.md index 607a379..ca96044 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Use NPM to install: ### Response Data -* `title` : Page title or `og:title` meta tag. +* `title` : Page title. * `description` : Page description or `og:description` meta tag. * `image` : `og:image` meta tag. * `url` : Page url or `og:url` meta tag. diff --git a/package.json b/package.json index e2c467b..91786da 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "metafetch", "description": "Metafetch fetches a given URL's title, description, images, links etc.", - "version": "3.0.2", + "version": "3.0.3", "homepage": "https://github.com/brahma-dev/metafetch", "repository": { "type": "git", diff --git a/src/parser.ts b/src/parser.ts index 84ec2ca..77d9511 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -121,7 +121,7 @@ export default function (url: string, options: any, body: string, headers: Axios // response.uri = uri; if (options.title) { - response.title = metaData['og:title'] || title; + response.title = title; } if (options.description) { response.description = metaData['og:description'] || metaData.description;