diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-12-12 16:16:33 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-12-12 16:16:33 -0500 |
| commit | 2647cc6859494a9090af1feaf678a79cc1a92f06 (patch) | |
| tree | 7c944b4f59f4f71b26a078f31d2168094dad1430 /MediaBrowser.Controller/Entities/PhotoAlbum.cs | |
| parent | f83c7be7275c6c9db369b8504634f48e0e93b129 (diff) | |
globalization fix
Diffstat (limited to 'MediaBrowser.Controller/Entities/PhotoAlbum.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/PhotoAlbum.cs | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/MediaBrowser.Controller/Entities/PhotoAlbum.cs b/MediaBrowser.Controller/Entities/PhotoAlbum.cs index 46a2209222..1f4faaf498 100644 --- a/MediaBrowser.Controller/Entities/PhotoAlbum.cs +++ b/MediaBrowser.Controller/Entities/PhotoAlbum.cs @@ -9,7 +9,7 @@ using System.Threading.Tasks; namespace MediaBrowser.Controller.Entities { - public class PhotoAlbum : Folder, IMetadataContainer + public class PhotoAlbum : Folder { [IgnoreDataMember] public override bool SupportsLocalMetadata @@ -33,31 +33,5 @@ namespace MediaBrowser.Controller.Entities { return config.BlockUnratedItems.Contains(UnratedItem.Other); } - - public async Task RefreshAllMetadata(MetadataRefreshOptions refreshOptions, IProgress<double> progress, CancellationToken cancellationToken) - { - var items = GetRecursiveChildren().ToList(); - - var totalItems = items.Count; - var numComplete = 0; - - // Refresh songs - foreach (var item in items) - { - cancellationToken.ThrowIfCancellationRequested(); - - await item.RefreshMetadata(refreshOptions, cancellationToken).ConfigureAwait(false); - - numComplete++; - double percent = numComplete; - percent /= totalItems; - progress.Report(percent * 100); - } - - // Refresh current item - await RefreshMetadata(refreshOptions, cancellationToken).ConfigureAwait(false); - - progress.Report(100); - } } } |
