diff options
| author | Vasily <JustAMan@users.noreply.github.com> | 2019-03-08 00:23:00 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-08 00:23:00 +0300 |
| commit | 028a98d2c1440ba25e50e54ae97e81c55bc4c497 (patch) | |
| tree | d10e832cb29d4dce888f18e68eb8bb99c426892b /MediaBrowser.Controller/Entities/ItemImageInfo.cs | |
| parent | 0f70a81db3d2d94dc50a407ba39963fd5df6d01f (diff) | |
| parent | c5fce647defd2eace2d2431ccc52ffe1d027c184 (diff) | |
Merge pull request #1058 from Bond-009/clean
Cleanup/simplification
Diffstat (limited to 'MediaBrowser.Controller/Entities/ItemImageInfo.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/ItemImageInfo.cs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/MediaBrowser.Controller/Entities/ItemImageInfo.cs b/MediaBrowser.Controller/Entities/ItemImageInfo.cs index ff6b13398..848493864 100644 --- a/MediaBrowser.Controller/Entities/ItemImageInfo.cs +++ b/MediaBrowser.Controller/Entities/ItemImageInfo.cs @@ -25,22 +25,10 @@ namespace MediaBrowser.Controller.Entities public DateTime DateModified { get; set; } public int Width { get; set; } + public int Height { get; set; } [IgnoreDataMember] - public bool IsLocalFile - { - get - { - if (Path != null) - { - if (Path.StartsWith("http", StringComparison.OrdinalIgnoreCase)) - { - return false; - } - } - return true; - } - } + public bool IsLocalFile => Path == null || !Path.StartsWith("http", StringComparison.OrdinalIgnoreCase); } } |
