From b6a2640f22ddfc76a871a1f3bf5fdc223b3b2db4 Mon Sep 17 00:00:00 2001 From: Jaan Taponen Date: Sat, 30 Apr 2022 22:24:11 +0300 Subject: [PATCH] Update Emby.Server.Implementations/LiveTv/EmbyTV/RecordingHelper.cs Co-authored-by: Joe Rogers <1337joe@users.noreply.github.com> --- .../LiveTv/EmbyTV/RecordingHelper.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Emby.Server.Implementations/LiveTv/EmbyTV/RecordingHelper.cs b/Emby.Server.Implementations/LiveTv/EmbyTV/RecordingHelper.cs index 87f94cb085..6ad9ccdf6e 100644 --- a/Emby.Server.Implementations/LiveTv/EmbyTV/RecordingHelper.cs +++ b/Emby.Server.Implementations/LiveTv/EmbyTV/RecordingHelper.cs @@ -54,12 +54,11 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV { tmpName += " -"; } - // Calculate the length of the resulting filename - var recordingNameLength = Encoding.UTF8.GetByteCount(tmpName) + Encoding.UTF8.GetByteCount(info.EpisodeTitle); + + tmpName += " " + info.EpisodeTitle; // Since the filename will be used with file ext. (.mp4, .ts, etc) - if (recordingNameLength < 250) + if (Encoding.UTF8.GetByteCount(tmpName) < 250) { - tmpName += " " + info.EpisodeTitle; name = tmpName; } }