diff --git a/MistWX-i2Me/Program.cs b/MistWX-i2Me/Program.cs index 4ad5389..5bfff88 100644 --- a/MistWX-i2Me/Program.cs +++ b/MistWX-i2Me/Program.cs @@ -137,11 +137,16 @@ public class Program continue; } - try { string choppedValue = i.Value.ToString().Split("_")[2]; + // Avoid duplicate locations from being added to the location list + if (locations.Contains(choppedValue)) + { + continue; + } + locations.Add(choppedValue); } catch (Exception ex)