Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/blame/commit/3694e6883be933c557bda93d8c232d5b40ee9f7a/Emby.Server.Implementations/StartupOptions.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
namespace Emby.Server.Implementations
|
|
|
|
|
{
|
|
|
|
|
public class StartupOptions
|
|
|
|
|
{
|
|
|
|
|
private readonly List<string> _options;
|
|
|
|
|
|
|
|
|
|
public StartupOptions(string[] commandLineArgs)
|
|
|
|
|
{
|
|
|
|
|
_options = commandLineArgs.ToList();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool ContainsOption(string option)
|
|
|
|
|
{
|
|
|
|
|
return _options.Contains(option, StringComparer.OrdinalIgnoreCase);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string GetOption(string name)
|
|
|
|
|
{
|
|
|
|
|
var index = _options.IndexOf(name);
|
|
|
|
|
|
|
|
|
|
if (index != -1)
|
|
|
|
|
{
|
|
|
|
|
return _options.ElementAtOrDefault(index + 1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|