mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-01 03:30:06 +00:00
update translations
This commit is contained in:
parent
2b14be8643
commit
e210825e54
71 changed files with 1698 additions and 366 deletions
|
|
@ -0,0 +1,35 @@
|
|||
using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Model.Library;
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MediaBrowser.Server.Implementations.Library.Validators
|
||||
{
|
||||
public class UserViewPostScanTask : ILibraryPostScanTask
|
||||
{
|
||||
private readonly IUserManager _userManager;
|
||||
private readonly IUserViewManager _userViewManager;
|
||||
|
||||
public UserViewPostScanTask(IUserManager userManager, IUserViewManager userViewManager)
|
||||
{
|
||||
_userManager = userManager;
|
||||
_userViewManager = userViewManager;
|
||||
}
|
||||
|
||||
public async Task Run(IProgress<double> progress, CancellationToken cancellationToken)
|
||||
{
|
||||
foreach (var user in _userManager.Users)
|
||||
{
|
||||
foreach (var view in await _userViewManager.GetUserViews(new UserViewQuery
|
||||
{
|
||||
UserId = user.Id.ToString("N")
|
||||
|
||||
}, cancellationToken).ConfigureAwait(false))
|
||||
{
|
||||
await view.RefreshMetadata(cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue