mirror of
https://github.com/MistWeatherMedia/i2ME.git
synced 2026-11-28 22:30:55 -08:00
Filter out duplicate location keys when pulling from the i2's MPC file (Fixes #9)
This commit is contained in:
1 parent
568084ce0e
commit
d0f99c1235
1 file changed
+6
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user