Support bitbucket.org too

This commit is contained in:
SmallJoker 2016-09-01 20:43:59 +02:00
parent 5bb7a229f0
commit e5e02579d7

View File

@ -363,8 +363,9 @@ namespace ModIndexer
}
if (download == "")
download = url;
} else if (url.Contains("://github.com/") ||
url.Contains("://notabug.org/")) {
} else if (url.Contains("://github.com/")
|| url.Contains("://notabug.org/")
|| url.Contains("://bitbucket.org/")) {
if (url.Contains("/minetest/minetest") ||
url.Contains("/commits"))
continue;
@ -374,7 +375,7 @@ namespace ModIndexer
for (byte i = 0; i < url.Length; i++) {
if (url[i] == '/') {
if (count == 4) {
// If it's too long
// If it's too long, cut it off
pos = i;
}
count++;