From e5e02579d73cb330bcc6b07913884ebe737ded90 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Thu, 1 Sep 2016 20:43:59 +0200 Subject: [PATCH] Support bitbucket.org too --- Program.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Program.cs b/Program.cs index 8f9af30..157ee6d 100644 --- a/Program.cs +++ b/Program.cs @@ -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++;