find-rss
Advanced tools
Comparing version 1.5.7 to 1.5.8
@@ -116,5 +116,6 @@ (function() { | ||
return request(guess, function(err, res, body) { | ||
if (res.statusCode === 200) { | ||
cand.favicon = guess; | ||
if (err || (res != null ? res.statusCode : void 0) !== 200) { | ||
return _cb; | ||
} | ||
cand.favicon = guess; | ||
return _cb(); | ||
@@ -155,2 +156,5 @@ }); | ||
charset = jschardet.detect(body).encoding; | ||
if (!charset || charset === "" || charset === null) { | ||
return callback(new Error('NotFoundEncodingError'), null); | ||
} | ||
if (charset !== ('utf-8' || 'UTF-8')) { | ||
@@ -157,0 +161,0 @@ converter = new iconv.Iconv(charset, 'utf-8'); |
{ | ||
"name": "find-rss", | ||
"description": "find rss feeds", | ||
"version": "1.5.7", | ||
"version": "1.5.8", | ||
"author": "nikezono", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
231
10330
6