Fix title fetching

This commit is contained in:
ronserruya 2019-07-31 14:26:22 +03:00
parent 48a58ffca6
commit 0d2d36251a
No known key found for this signature in database
GPG Key ID: 46D110A2BAEC4EDD

View File

@ -198,7 +198,7 @@ function pageScrape(config: IConfig, task: IConfigTask, done: (err: any, result?
}
const $ = cheerio.load(result);
const title = $('span[itemprop=name]').text();
const title = $('meta[itemprop=name]').attr("content")
if (config.debug)
{