From 716151c9e4a96cf8874b8082af0da799217b29e4 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 5 May 2013 23:58:45 -0400 Subject: [PATCH] display rotten tomatoes icon --- .../Providers/Movies/RottenTomatoesMovieProvider.cs | 9 +++++---- .../MediaBrowser.WebDashboard.csproj | 6 ++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/MediaBrowser.Controller/Providers/Movies/RottenTomatoesMovieProvider.cs b/MediaBrowser.Controller/Providers/Movies/RottenTomatoesMovieProvider.cs index c8b3e988a3..61364de97f 100644 --- a/MediaBrowser.Controller/Providers/Movies/RottenTomatoesMovieProvider.cs +++ b/MediaBrowser.Controller/Providers/Movies/RottenTomatoesMovieProvider.cs @@ -34,7 +34,7 @@ namespace MediaBrowser.Controller.Providers.Movies /// /// The _rotten tomatoes resource pool /// - private readonly SemaphoreSlim _rottenTomatoesResourcePool = new SemaphoreSlim(1, 1); + private readonly SemaphoreSlim _rottenTomatoesResourcePool = new SemaphoreSlim(2, 2); /// /// Gets the json serializer. @@ -70,7 +70,7 @@ namespace MediaBrowser.Controller.Providers.Movies { get { - return "4"; + return "5"; } } @@ -236,7 +236,7 @@ namespace MediaBrowser.Controller.Providers.Movies // If we found any results, that's great! if (hit != null) { - item.CriticRatingSummary = hit.critics_concensus; + item.CriticRatingSummary = hit.critics_consensus; item.CriticRating = float.Parse(hit.ratings.critics_score); using (var stream = HttpClient.Get(MovieReviewsUrl(hit.id), _rottenTomatoesResourcePool, cancellationToken).Result) @@ -331,7 +331,7 @@ namespace MediaBrowser.Controller.Providers.Movies public int year { get; set; } public string runtime { get; set; } public string synopsis { get; set; } - public string critics_concensus { get; set; } + public string critics_consensus { get; set; } public string mpaa_rating { get; set; } public string id { get; set; } public RTRatings ratings { get; set; } @@ -363,6 +363,7 @@ namespace MediaBrowser.Controller.Providers.Movies public string publication { get; set; } public string quote { get; set; } public RTReviewLink links { get; set; } + public string original_score { get; set; } } protected class RTReviewLink diff --git a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj index 29765542d3..11e139350a 100644 --- a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj +++ b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj @@ -93,6 +93,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest @@ -108,6 +111,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest