Tech Debt + Series Sort bugfix (#1192)
* Code cleanup. When copying files, if the target file already exists, append (1), (2), etc onto the file (this is enhancing existing implementation to allow multiple numbers) * Added a ton of null checks to UpdateSeriesMetadata and made the code work on the rare case (not really possible) that SeriesMetadata doesn't exist. * Updated Genre code to use strings to ensure a better, more fault tolerant update experience. * More cleanup on the codebase * Fixed a bug where Series SortName was getting emptied on file scan * Fixed a bad copy * Fixed unit tests
This commit is contained in:
parent
a00e8f121f
commit
19678383b2
17 changed files with 362 additions and 138 deletions
|
@ -36,9 +36,10 @@ public class EventHub : IEventHub
|
|||
if (onlyAdmins)
|
||||
{
|
||||
var admins = await _presenceTracker.GetOnlineAdmins();
|
||||
_messageHub.Clients.Users(admins);
|
||||
users = _messageHub.Clients.Users(admins);
|
||||
}
|
||||
|
||||
|
||||
await users.SendAsync(method, message);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -311,7 +311,6 @@ namespace API.SignalR
|
|||
{
|
||||
Name = CoverUpdate,
|
||||
Title = "Updating Cover",
|
||||
//SubTitle = series.Name, // TODO: Refactor this
|
||||
Progress = ProgressType.None,
|
||||
Body = new
|
||||
{
|
||||
|
|
|
@ -34,6 +34,6 @@ namespace API.SignalR
|
|||
/// <summary>
|
||||
/// When event took place
|
||||
/// </summary>
|
||||
public DateTime EventTime = DateTime.Now;
|
||||
public readonly DateTime EventTime = DateTime.Now;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue