diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-08-16 12:46:50 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-08-16 12:46:50 -0400 |
| commit | 96e207acb307ae1b3c4c5761dd07a41d52969a58 (patch) | |
| tree | 5f6954e067b9f846c467dce238b339ff112f20bc | |
| parent | 70af70874183a997acdff53e046595ca8d646a38 (diff) | |
update omdb provider
| -rw-r--r-- | MediaBrowser.Providers/Omdb/OmdbProvider.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/MediaBrowser.Providers/Omdb/OmdbProvider.cs b/MediaBrowser.Providers/Omdb/OmdbProvider.cs index aee1abd727..9208031f39 100644 --- a/MediaBrowser.Providers/Omdb/OmdbProvider.cs +++ b/MediaBrowser.Providers/Omdb/OmdbProvider.cs @@ -51,10 +51,11 @@ namespace MediaBrowser.Providers.Omdb { var result = _jsonSerializer.DeserializeFromStream<RootObject>(stream); - // Only take the name if the user's language is set to english, since Omdb has no localization + // Only take the name and rating if the user's language is set to english, since Omdb has no localization if (string.Equals(language, "en", StringComparison.OrdinalIgnoreCase)) { item.Name = result.Title; + item.OfficialRating = result.Rated; } int year; @@ -66,9 +67,6 @@ namespace MediaBrowser.Providers.Omdb item.ProductionYear = year; } - item.OfficialRating = result.Rated; - - var hasCriticRating = item as IHasCriticRating; if (hasCriticRating != null) { |
