aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2023-05-15 06:55:28 -0600
committerCody Robibero <cody@robibe.ro>2023-05-15 06:55:28 -0600
commitc809c36b30fe9fa4be34f15089a5855c343a0f4e (patch)
treea86eb6acf8519c91258c1fbdfb45d158f8feb550
parent603fce59df780626c3269eaa94d95504e823b2f6 (diff)
Fix readonlyspan usage
-rw-r--r--Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
index ca3e45707..7645c6c52 100644
--- a/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
+++ b/Emby.Server.Implementations/LiveTv/Listings/SchedulesDirect.cs
@@ -462,10 +462,10 @@ namespace Emby.Server.Implementations.LiveTv.Listings
}
StringBuilder str = new StringBuilder("[", 1 + (programIds.Count * 13));
- foreach (ReadOnlySpan<char> i in programIds)
+ foreach (var i in programIds)
{
str.Append('"')
- .Append(i.Slice(0, 10))
+ .Append(i[..10])
.Append("\",");
}