mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 09:04:42 +01:00
update ffmpeg info
This commit is contained in:
@@ -85,16 +85,23 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
|
||||
async void _httpServer_WebSocketConnecting(object sender, WebSocketConnectingEventArgs e)
|
||||
{
|
||||
var token = e.QueryString["api_key"];
|
||||
if (!string.IsNullOrWhiteSpace(token))
|
||||
{
|
||||
var session = await GetSession(e.QueryString, e.Endpoint).ConfigureAwait(false);
|
||||
//var token = e.QueryString["api_key"];
|
||||
//if (!string.IsNullOrWhiteSpace(token))
|
||||
//{
|
||||
// try
|
||||
// {
|
||||
// var session = await GetSession(e.QueryString, e.Endpoint).ConfigureAwait(false);
|
||||
|
||||
if (session == null)
|
||||
{
|
||||
//e.AllowConnection = false;
|
||||
}
|
||||
}
|
||||
// if (session == null)
|
||||
// {
|
||||
// e.AllowConnection = false;
|
||||
// }
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// _logger.ErrorException("Error getting session info", ex);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
private Task<SessionInfo> GetSession(NameValueCollection queryString, string remoteEndpoint)
|
||||
|
||||
Reference in New Issue
Block a user