mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-05 07:18:47 +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;
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace MediaBrowser.Controller.Providers
|
||||
public Stream Stream { get; set; }
|
||||
public ImageFormat Format { get; set; }
|
||||
public bool HasImage { get; set; }
|
||||
public string InternalCacheKey { get; set; }
|
||||
|
||||
public void SetFormatFromMimeType(string mimeType)
|
||||
{
|
||||
|
||||
@@ -69,28 +69,8 @@ namespace MediaBrowser.Controller.Providers
|
||||
/// <summary>
|
||||
/// Saves the image.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <param name="source">The source.</param>
|
||||
/// <param name="mimeType">Type of the MIME.</param>
|
||||
/// <param name="type">The type.</param>
|
||||
/// <param name="imageIndex">Index of the image.</param>
|
||||
/// <param name="internalCacheKey">The internal cache key.</param>
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
/// <returns>Task.</returns>
|
||||
Task SaveImage(IHasImages item, Stream source, string mimeType, ImageType type, int? imageIndex, string internalCacheKey, CancellationToken cancellationToken);
|
||||
|
||||
/// <summary>
|
||||
/// Saves the image.
|
||||
/// </summary>
|
||||
/// <param name="item">The item.</param>
|
||||
/// <param name="source">The source.</param>
|
||||
/// <param name="mimeType">Type of the MIME.</param>
|
||||
/// <param name="type">The type.</param>
|
||||
/// <param name="imageIndex">Index of the image.</param>
|
||||
/// <param name="internalCacheKey">The internal cache key.</param>
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
/// <returns>Task.</returns>
|
||||
Task SaveImage(IHasImages item, string source, string mimeType, ImageType type, int? imageIndex, string internalCacheKey, CancellationToken cancellationToken);
|
||||
Task SaveImage(IHasImages item, string source, string mimeType, ImageType type, int? imageIndex, bool? saveLocallyWithMedia, CancellationToken cancellationToken);
|
||||
|
||||
/// <summary>
|
||||
/// Adds the metadata providers.
|
||||
|
||||
Reference in New Issue
Block a user