mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
Update Emby.Server.Implementations/LiveTv/EmbyTV/RecordingHelper.cs
Co-authored-by: Joe Rogers <1337joe@users.noreply.github.com>
This commit is contained in:
parent
2b7d139b5b
commit
b6a2640f22
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
// Since the filename will be used with file ext. (.mp4, .ts, etc)
|
||||
if (recordingNameLength < 250)
|
||||
{
|
||||
|
||||
tmpName += " " + info.EpisodeTitle;
|
||||
// Since the filename will be used with file ext. (.mp4, .ts, etc)
|
||||
if (Encoding.UTF8.GetByteCount(tmpName) < 250)
|
||||
{
|
||||
name = tmpName;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue