open-graph-scraper
Advanced tools
Comparing version 2.5.1 to 2.5.2
@@ -496,2 +496,8 @@ var request = require('request'), | ||
// set the ogImage or fallback to ogImageURL or ogImageSecureURL | ||
ogObject.ogImage = ogObject.ogImage ? ogObject.ogImage : (ogObject.ogImageURL ? ogObject.ogImageURL : (ogObject.ogImageSecureURL ? ogObject.ogImageSecureURL : [])); | ||
if (!ogObject.ogImage || !ogObject.ogImage.length) { | ||
delete ogObject['ogImage']; | ||
} | ||
/* Combine image/width/height/type | ||
@@ -498,0 +504,0 @@ and sort for priority */ |
{ | ||
"name": "open-graph-scraper", | ||
"description": "Node.js scraper service for Open Graph info", | ||
"version": "2.5.1", | ||
"version": "2.5.2", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "main": "app.js", |
@@ -134,3 +134,3 @@ var app = require('../app'), | ||
var optionCharset3 = { | ||
'url': 'http://www.f2.dion.ne.jp/~initialt/errdiffusion.html', | ||
'url': 'http://www.rakuten.co.jp/', | ||
'encoding': null | ||
@@ -508,3 +508,3 @@ }; | ||
expect(result.success).to.be(true); | ||
expect(result.data.ogTitle).to.be('誤差拡散とは'); | ||
expect(result.data.ogTitle).to.be('【楽天市場】Shopping is Entertainment! : インターネット最大級の通信販売、通販オンラインショッピングコミュニティ'); | ||
done(); | ||
@@ -511,0 +511,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48585
1251