mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 15:03:06 +03:00
rework collection editor
This commit is contained in:
@@ -69,47 +69,6 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Security
|
||||
token = httpReq.QueryString["api_key"];
|
||||
}
|
||||
|
||||
// Hack until iOS is updated
|
||||
// TODO: Remove
|
||||
if (string.IsNullOrWhiteSpace(client))
|
||||
{
|
||||
var userAgent = httpReq.Headers["User-Agent"] ?? string.Empty;
|
||||
|
||||
if (userAgent.IndexOf("mediabrowserios", StringComparison.OrdinalIgnoreCase) != -1 ||
|
||||
userAgent.IndexOf("iphone", StringComparison.OrdinalIgnoreCase) != -1 ||
|
||||
userAgent.IndexOf("ipad", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
{
|
||||
client = "iOS";
|
||||
}
|
||||
|
||||
else if (userAgent.IndexOf("crKey", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
{
|
||||
client = "Chromecast";
|
||||
}
|
||||
}
|
||||
|
||||
// Hack until iOS is updated
|
||||
// TODO: Remove
|
||||
if (string.IsNullOrWhiteSpace(device))
|
||||
{
|
||||
var userAgent = httpReq.Headers["User-Agent"] ?? string.Empty;
|
||||
|
||||
if (userAgent.IndexOf("iPhone", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
{
|
||||
device = "iPhone";
|
||||
}
|
||||
|
||||
else if (userAgent.IndexOf("iPad", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
{
|
||||
device = "iPad";
|
||||
}
|
||||
|
||||
else if (userAgent.IndexOf("crKey", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
{
|
||||
device = "Chromecast";
|
||||
}
|
||||
}
|
||||
|
||||
var info = new AuthorizationInfo
|
||||
{
|
||||
Client = client,
|
||||
|
||||
Reference in New Issue
Block a user