Remove debug suffix from filename - fixes Xbox playback

This commit is contained in:
mani
2026-01-08 17:13:37 +01:00
parent 929af58321
commit a67b2c1212

View File

@@ -387,20 +387,15 @@ public static class StreamingHelpers
// Check if this is a full file download (no segments) vs HLS streaming
var streamingRequest = state.BaseRequest as StreamingRequestDto;
// DEBUG: Add segment container value to filename
var segmentInfo = streamingRequest?.SegmentContainer ?? "NULL";
var debugSuffix = $"_SEG_{segmentInfo}";
if (streamingRequest?.SegmentContainer is null)
{
// Full file download - use disk-based transcode path
var diskTranscodePath = Path.Combine(folder, "downloads");
Directory.CreateDirectory(diskTranscodePath);
folder = diskTranscodePath;
debugSuffix += "_DL";
}
return Path.Combine(folder, filename + debugSuffix + ext);
return Path.Combine(folder, filename + ext);
}
/// <summary>