diff --git a/Hotsapi.Uploader.Common/Manager.cs b/Hotsapi.Uploader.Common/Manager.cs index 743f33b..1f8f004 100644 --- a/Hotsapi.Uploader.Common/Manager.cs +++ b/Hotsapi.Uploader.Common/Manager.cs @@ -67,8 +67,12 @@ private async Task UploadLoop() var monitor = new Monitor(); var replays = _storage.Load().ToList(); - var filenames = new HashSet(replays.Select(x => x.Filename)); - replays.AddRange(monitor.ScanReplays().Where(x => !filenames.Contains(x)).Select(x => new ReplayFile(x))); + var filenames = replays.ToDictionary(x => x.Filename); + replays.AddRange(monitor.ScanReplays() + .Where(x => !filenames.ContainsKey(x)) + .Select(x => new ReplayFile(x)) + .Where(x => x.Created != filenames[x.Filename].Created) + ); replays.OrderByDescending(x => x.Created).Map(x => Files.Add(x)); monitor.ReplayAdded += async (_, e) => { diff --git a/Hotsapi.Uploader.Windows/Properties/AssemblyInfo.cs b/Hotsapi.Uploader.Windows/Properties/AssemblyInfo.cs index b3e5ebc..7ffb2eb 100644 --- a/Hotsapi.Uploader.Windows/Properties/AssemblyInfo.cs +++ b/Hotsapi.Uploader.Windows/Properties/AssemblyInfo.cs @@ -51,5 +51,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.3.0.0")] -[assembly: AssemblyFileVersion("1.3.0.0")] +[assembly: AssemblyVersion("1.4.0.0")] +[assembly: AssemblyFileVersion("1.4.0.0")]