diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-08-13 16:55:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-13 16:55:29 -0400 |
| commit | 03648936dcadf0ff0f707a5040e2e28556fa56ca (patch) | |
| tree | 38028a28a9d59978ef9ebf1b4fb1c3f146653fd1 /MediaBrowser.Controller/Entities/Video.cs | |
| parent | 6600ff0990a1037d6f9c3bf160104089aac501e4 (diff) | |
| parent | 8508e07bb9d1af326ef4c1c1b891e0d49288167b (diff) | |
Merge pull request #2053 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Controller/Entities/Video.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/Video.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/Video.cs b/MediaBrowser.Controller/Entities/Video.cs index 830747d3c..8809f155c 100644 --- a/MediaBrowser.Controller/Entities/Video.cs +++ b/MediaBrowser.Controller/Entities/Video.cs @@ -12,6 +12,7 @@ using System.Runtime.Serialization; using System.Threading; using System.Threading.Tasks; using CommonIO; +using MediaBrowser.Common.Extensions; using MediaBrowser.Controller.Channels; namespace MediaBrowser.Controller.Entities @@ -611,6 +612,11 @@ namespace MediaBrowser.Controller.Entities SupportsDirectStream = i.VideoType == VideoType.VideoFile }; + if (info.Protocol == MediaProtocol.File) + { + info.ETag = i.DateModified.Ticks.ToString(CultureInfo.InvariantCulture).GetMD5().ToString("N"); + } + if (i.IsShortcut) { info.Path = i.ShortcutPath; |
