mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Use ReadOnlySpan in GetImagesForPrograms
This commit is contained in:
parent
67308f489f
commit
d64e14fcb8
1 changed files with 2 additions and 2 deletions
|
@ -459,7 +459,7 @@ namespace Emby.Server.Implementations.LiveTv.Listings
|
|||
}
|
||||
|
||||
StringBuilder str = new StringBuilder("[", 1 + (programIds.Count * 13));
|
||||
foreach (string i in programIds)
|
||||
foreach (ReadOnlySpan<char> i in programIds)
|
||||
{
|
||||
str.Append('"')
|
||||
.Append(i[..10])
|
||||
|
@ -789,7 +789,7 @@ namespace Emby.Server.Implementations.LiveTv.Listings
|
|||
{
|
||||
var channelNumber = GetChannelNumber(channel);
|
||||
|
||||
var station = allStations.Find(item => string.Equals(item.stationID, channel.stationID, StringComparison.OrdinalIgnoreCase))
|
||||
var station = allStations.Find(item => string.Equals(item.stationID, channel.stationID, StringComparison.OrdinalIgnoreCase))
|
||||
?? new ScheduleDirect.Station
|
||||
{
|
||||
stationID = channel.stationID
|
||||
|
|
Loading…
Reference in a new issue