mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 06:23:03 +03:00
factor srt date modified into subtitle cache path
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user