repos
This commit is contained in:
parent
868de8b430
commit
32cdbbdfab
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue