|
|
@ -137,10 +137,7 @@ namespace MediaBrowser.Api.Playback
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
private string GetOutputFilePath(StreamState state, EncodingOptions encodingOptions, string outputFileExtension)
|
|
|
|
private string GetOutputFilePath(StreamState state, EncodingOptions encodingOptions, string outputFileExtension)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var data = $"{state.MediaPath}-" +
|
|
|
|
var data = $"{state.MediaPath}-{state.UserAgent}-{state.Request.DeviceId}-{state.Request.PlaySessionId}";
|
|
|
|
$"{state.UserAgent}" +
|
|
|
|
|
|
|
|
$"{state.Request.DeviceId ?? string.Empty}-" +
|
|
|
|
|
|
|
|
$"{state.Request.PlaySessionId ?? string.Empty}";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var filename = data.GetMD5().ToString("N", CultureInfo.InvariantCulture);
|
|
|
|
var filename = data.GetMD5().ToString("N", CultureInfo.InvariantCulture);
|
|
|
|
var ext = outputFileExtension.ToLowerInvariant();
|
|
|
|
var ext = outputFileExtension.ToLowerInvariant();
|
|
|
|