From 32babe2b941d2f43d9e1c61ceaa58d6d31a9d60f Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 25 Oct 2015 13:13:30 -0400 Subject: update images --- MediaBrowser.Controller/Entities/BaseItem.cs | 7 ------- MediaBrowser.Controller/Entities/IHasImages.cs | 13 ++++++++++++- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'MediaBrowser.Controller/Entities') diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index 3812ff860d..7d0e07b0df 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -185,13 +185,6 @@ namespace MediaBrowser.Controller.Entities } } - /// - /// Supply the image path if it can be accessed directly from the file system - /// - /// The image path. - [IgnoreDataMember] - public string ExternalImagePath { get; set; } - /// /// Gets or sets the etag. /// diff --git a/MediaBrowser.Controller/Entities/IHasImages.cs b/MediaBrowser.Controller/Entities/IHasImages.cs index da729176d2..28835168a6 100644 --- a/MediaBrowser.Controller/Entities/IHasImages.cs +++ b/MediaBrowser.Controller/Entities/IHasImages.cs @@ -247,7 +247,18 @@ namespace MediaBrowser.Controller.Entities /// The file. public static void SetImagePath(this IHasImages item, ImageType imageType, string file) { - item.SetImagePath(imageType, BaseItem.FileSystem.GetFileInfo(file)); + if (file.StartsWith("http", System.StringComparison.OrdinalIgnoreCase)) + { + item.SetImage(new ItemImageInfo + { + Path = file, + Type = imageType + }, 0); + } + else + { + item.SetImagePath(imageType, BaseItem.FileSystem.GetFileInfo(file)); + } } } } -- cgit v1.2.3