浏览代码

Update Emby.Server.Implementations/LiveTv/EmbyTV/RecordingHelper.cs

Co-authored-by: Joe Rogers <1337joe@users.noreply.github.com>
Jaan Taponen 3 年之前
父节点
当前提交
b6a2640f22
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      Emby.Server.Implementations/LiveTv/EmbyTV/RecordingHelper.cs

+ 3 - 4
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;
                     }
                 }