mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-27 04:24:52 +01:00
update hls timer
This commit is contained in:
@@ -98,7 +98,7 @@ namespace MediaBrowser.Model.ApiClient
|
||||
{
|
||||
var index = 0;
|
||||
|
||||
foreach (var server in servers)
|
||||
foreach (ServerInfo server in servers)
|
||||
{
|
||||
if (StringHelper.EqualsIgnoreCase(id, server.Id))
|
||||
{
|
||||
@@ -110,5 +110,18 @@ namespace MediaBrowser.Model.ApiClient
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
public ServerInfo GetServer(string id)
|
||||
{
|
||||
foreach (ServerInfo server in Servers)
|
||||
{
|
||||
if (StringHelper.EqualsIgnoreCase(id, server.Id))
|
||||
{
|
||||
return server;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user