This commit is contained in:
Mirco Wittrien 2018-12-14 20:51:25 +01:00
parent 868de8b430
commit 32cdbbdfab
2 changed files with 2 additions and 2 deletions

View File

@ -758,7 +758,7 @@ class PluginRepo {
if (!response) {
if (url && BDFDB.getAllIndexes(this.foundPlugins, url).length < 2) this.foundPlugins.push(url);
}
else if (body.indexOf("404: Not Found") != 0) {
else if (body && body.indexOf("404: Not Found") != 0 && response.statusCode == 200) {
let plugin = {};
let bodycopy = body;
if (body.length / body.split("\n").length > 1000) {

View File

@ -867,7 +867,7 @@ class ThemeRepo {
if (!response) {
if (url && BDFDB.getAllIndexes(this.foundThemes, url).length < 2) this.foundThemes.push(url);
}
else {
else if (body && body.indexOf("404: Not Found") != 0 && response.statusCode == 200) {
let theme = {};
let text = body;
if (text.split("*//").length > 1 && text.split("\n").length > 1) {