mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-13 19:20:23 +01:00
remove dead interface objects
This commit is contained in:
@@ -185,14 +185,12 @@ namespace MediaBrowser.Controller.Providers
|
||||
{
|
||||
var text = reader.ReadElementContentAsString();
|
||||
|
||||
var hasCriticRating = item as IHasCriticRating;
|
||||
|
||||
if (hasCriticRating != null && !string.IsNullOrEmpty(text))
|
||||
if (!string.IsNullOrEmpty(text))
|
||||
{
|
||||
float value;
|
||||
if (float.TryParse(text, NumberStyles.Any, _usCulture, out value))
|
||||
{
|
||||
hasCriticRating.CriticRating = value;
|
||||
item.CriticRating = value;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -292,12 +290,7 @@ namespace MediaBrowser.Controller.Providers
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(val))
|
||||
{
|
||||
var hasShortOverview = item as IHasShortOverview;
|
||||
|
||||
if (hasShortOverview != null)
|
||||
{
|
||||
hasShortOverview.ShortOverview = val;
|
||||
}
|
||||
item.ShortOverview = val;
|
||||
}
|
||||
|
||||
break;
|
||||
@@ -309,12 +302,7 @@ namespace MediaBrowser.Controller.Providers
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(val))
|
||||
{
|
||||
var hasCriticRating = item as IHasCriticRating;
|
||||
|
||||
if (hasCriticRating != null)
|
||||
{
|
||||
hasCriticRating.CriticRatingSummary = val;
|
||||
}
|
||||
item.CriticRatingSummary = val;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user