mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
Add improved error error for #2141
This commit is contained in:
parent
96a5dda9ff
commit
a4ca259a64
@ -304,9 +304,12 @@ namespace Emby.Server.Implementations.LiveTv
|
|||||||
}
|
}
|
||||||
|
|
||||||
private ILiveTvService GetService(string name)
|
private ILiveTvService GetService(string name)
|
||||||
{
|
=> Array.Find(_services, x => string.Equals(x.Name, name, StringComparison.OrdinalIgnoreCase))
|
||||||
return _services.FirstOrDefault(i => string.Equals(i.Name, name, StringComparison.OrdinalIgnoreCase));
|
?? throw new KeyNotFoundException(
|
||||||
}
|
string.Format(
|
||||||
|
CultureInfo.InvariantCulture,
|
||||||
|
"No service with the name '{0}' can be found.",
|
||||||
|
name));
|
||||||
|
|
||||||
private static void Normalize(MediaSourceInfo mediaSource, ILiveTvService service, bool isVideo)
|
private static void Normalize(MediaSourceInfo mediaSource, ILiveTvService service, bool isVideo)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user