From 458126a92248243801c18864809277d3de5a3b86 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 22 May 2013 15:49:12 -0400 Subject: [PATCH] added refresh metadata button to the edit page --- MediaBrowser.Api/LibraryService.cs | 113 ++++++++++++------ .../Providers/ProviderManager.cs | 2 - MediaBrowser.WebDashboard/ApiClient.js | 22 ++++ MediaBrowser.WebDashboard/packages.config | 2 +- 4 files changed, 97 insertions(+), 42 deletions(-) diff --git a/MediaBrowser.Api/LibraryService.cs b/MediaBrowser.Api/LibraryService.cs index fbd0cfb1ef..bcf359aa4b 100644 --- a/MediaBrowser.Api/LibraryService.cs +++ b/MediaBrowser.Api/LibraryService.cs @@ -106,7 +106,7 @@ namespace MediaBrowser.Api [ApiMember(Name = "Recursive", Description = "Indicates if the refresh should occur recursively.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "POST")] public bool Recursive { get; set; } - + [ApiMember(Name = "Id", Description = "Item Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "POST")] public string Id { get; set; } } @@ -173,7 +173,8 @@ namespace MediaBrowser.Api /// The item repo. /// The library manager. /// The user manager. - public LibraryService(IItemRepository itemRepo, ILibraryManager libraryManager, IUserManager userManager, IUserDataRepository userDataRepository) + public LibraryService(IItemRepository itemRepo, ILibraryManager libraryManager, IUserManager userManager, + IUserDataRepository userDataRepository) { _itemRepo = itemRepo; _libraryManager = libraryManager; @@ -203,15 +204,15 @@ namespace MediaBrowser.Api var items = GetItems(request.UserId).ToList(); var counts = new ItemCounts - { - AlbumCount = items.OfType().Count(), - EpisodeCount = items.OfType().Count(), - GameCount = items.OfType().Count(), - MovieCount = items.OfType().Count(), - SeriesCount = items.OfType().Count(), - SongCount = items.OfType