The Free Software Media System - Server Backend & API
factor srt date modified into subtitle cache path
Luke Pulverentif57cec4cff8f
diff --git a/MediaBrowser.Controller/MediaInfo/FFMpegManager.cs b/MediaBrowser.Controller/MediaInfo/FFMpegManager.csindex 087207024e..f3e3413d42 100644--- a/MediaBrowser.Controller/MediaInfo/FFMpegManager.cs+++ b/MediaBrowser.Controller/MediaInfo/FFMpegManager.cs@@ -230,6 +230,13 @@ namespace MediaBrowser.Controller.MediaInfo{var ticksParam = offset.HasValue ? "_" + offset.Value.Ticks : "";+ var stream = input.MediaStreams[subtitleStreamIndex];++ if (stream.IsExternal)+ {+ ticksParam += File.GetLastWriteTimeUtc(stream.Path).Ticks;+ }+return SubtitleCache.GetResourcePath(input.Id + "_" + subtitleStreamIndex + "_" + input.DateModified.Ticks + ticksParam, outputExtension);}}