update details
This commit is contained in:
parent
77a6eafe15
commit
12ff39eeaf
|
@ -817,7 +817,6 @@ namespace Emby.Server.Implementations.Connect
|
|||
}
|
||||
}
|
||||
|
||||
private readonly SemaphoreSlim _connectImageSemaphore = new SemaphoreSlim(5, 5);
|
||||
private async Task RefreshAuthorizations(List<ServerUserAuthorizationResponse> list, bool refreshImages)
|
||||
{
|
||||
var users = _userManager.Users.ToList();
|
||||
|
@ -992,7 +991,7 @@ namespace Emby.Server.Implementations.Connect
|
|||
|
||||
if (changed)
|
||||
{
|
||||
await _providerManager.SaveImage(user, imageUrl, _connectImageSemaphore, ImageType.Primary, null, CancellationToken.None).ConfigureAwait(false);
|
||||
await _providerManager.SaveImage(user, imageUrl, null, ImageType.Primary, null, CancellationToken.None).ConfigureAwait(false);
|
||||
|
||||
await user.RefreshMetadata(new MetadataRefreshOptions(_fileSystem)
|
||||
{
|
||||
|
|
|
@ -261,13 +261,13 @@ namespace Emby.Server.Implementations.Security
|
|||
var reg = new RegRecord
|
||||
{
|
||||
// Cache the result for up to a week
|
||||
registered = regInfo != null && nextCheckDate >= DateTime.UtcNow,
|
||||
registered = regInfo != null && nextCheckDate >= DateTime.UtcNow && expDate >= DateTime.UtcNow,
|
||||
expDate = expDate
|
||||
};
|
||||
|
||||
var success = reg.registered;
|
||||
|
||||
if (!(lastChecked > DateTime.UtcNow.AddDays(-1)))
|
||||
if (!(lastChecked > DateTime.UtcNow.AddDays(-1)) || !reg.registered)
|
||||
{
|
||||
var data = new Dictionary<string, string>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user