feedparser
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -128,6 +128,6 @@ /********************************************************************** | ||
if (category['@'] && getValue(category['@'], 'term')) meta.categories.push(getValue(category['@'], 'term')); | ||
} else if ('category' == name && 'rss' == type) { | ||
} else if ('category' == name && getValue(category) && 'rss' == type) { | ||
var categories = getValue(category).split(',').map(function (cat){ return cat.trim(); }); | ||
if (categories.length) meta.categories = meta.categories.concat(categories); | ||
} else if ('dc:subject' == name) { | ||
} else if ('dc:subject' == name && getValue(category)) { | ||
var categories = getValue(category).split(' ').map(function (cat){ return cat.trim(); }); | ||
@@ -157,6 +157,6 @@ if (categories.length) meta.categories = meta.categories.concat(categories); | ||
if (getValue(el['@'], 'term')) meta.categories.push(getValue(el['@'], 'term')); | ||
} else if ('category' == name && 'rss' == type) { | ||
} else if ('category' == name && getValue(el) && 'rss' == type) { | ||
var categories = getValue(el).split(',').map(function (cat){ return cat.trim(); }); | ||
if (categories.length) meta.categories = meta.categories.concat(categories); | ||
} else if ('dc:subject' == name) { | ||
} else if ('dc:subject' == name && getValue(el)) { | ||
var categories = getValue(el).split(' ').map(function (cat){ return cat.trim(); }); | ||
@@ -360,6 +360,6 @@ if (categories.length) meta.categories = meta.categories.concat(categories); | ||
if (category['@'] && getValue(category['@'], 'term')) item.categories.push(getValue(category['@'], 'term')); | ||
} else if ('category' == name && 'rss' == type) { | ||
} else if ('category' == name && getValue(category) && 'rss' == type) { | ||
var categories = getValue(category).split(',').map(function (cat){ return cat.trim(); }); | ||
if (categories.length) item.categories = item.categories.concat(categories); | ||
} else if ('dc:subject' == name) { | ||
} else if ('dc:subject' == name && getValue(category)) { | ||
var categories = getValue(category).split(' ').map(function (cat){ return cat.trim(); }); | ||
@@ -389,6 +389,6 @@ if (categories.length) item.categories = item.categories.concat(categories); | ||
if (getValue(el['@'], 'term')) item.categories.push(getValue(el['@'], 'term')); | ||
} else if ('category' == name && 'rss' == type) { | ||
} else if ('category' == name && getValue(el) && 'rss' == type) { | ||
var categories = getValue(el).split(',').map(function (cat){ return cat.trim(); }); | ||
if (categories.length) item.categories = item.categories.concat(categories); | ||
} else if ('dc:subject' == name) { | ||
} else if ('dc:subject' == name && getValue(el)) { | ||
var categories = getValue(el).split(' ').map(function (cat){ return cat.trim(); }); | ||
@@ -395,0 +395,0 @@ if (categories.length) item.categories = item.categories.concat(categories); |
@@ -5,3 +5,3 @@ { | ||
"description": "Robust RSS, Atom, and RDF feed parsing using sax js", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
41279
0