Support bitbucket.org too
This commit is contained in:
parent
5bb7a229f0
commit
e5e02579d7
@ -363,8 +363,9 @@ namespace ModIndexer
|
|||||||
}
|
}
|
||||||
if (download == "")
|
if (download == "")
|
||||||
download = url;
|
download = url;
|
||||||
} else if (url.Contains("://github.com/") ||
|
} else if (url.Contains("://github.com/")
|
||||||
url.Contains("://notabug.org/")) {
|
|| url.Contains("://notabug.org/")
|
||||||
|
|| url.Contains("://bitbucket.org/")) {
|
||||||
if (url.Contains("/minetest/minetest") ||
|
if (url.Contains("/minetest/minetest") ||
|
||||||
url.Contains("/commits"))
|
url.Contains("/commits"))
|
||||||
continue;
|
continue;
|
||||||
@ -374,7 +375,7 @@ namespace ModIndexer
|
|||||||
for (byte i = 0; i < url.Length; i++) {
|
for (byte i = 0; i < url.Length; i++) {
|
||||||
if (url[i] == '/') {
|
if (url[i] == '/') {
|
||||||
if (count == 4) {
|
if (count == 4) {
|
||||||
// If it's too long
|
// If it's too long, cut it off
|
||||||
pos = i;
|
pos = i;
|
||||||
}
|
}
|
||||||
count++;
|
count++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user