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/ca0c0bdcb921cd662b2871f0f788bbec77f822d9/MediaBrowser.Dlna/ConfigurationExtension.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using MediaBrowser.Common.Configuration;
|
|
|
|
|
using MediaBrowser.Model.Configuration;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Dlna
|
|
|
|
|
{
|
|
|
|
|
public static class ConfigurationExtension
|
|
|
|
|
{
|
|
|
|
|
public static DlnaOptions GetDlnaConfiguration(this IConfigurationManager manager)
|
|
|
|
|
{
|
|
|
|
|
return manager.GetConfiguration<DlnaOptions>("dlna");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class DlnaConfigurationFactory : IConfigurationFactory
|
|
|
|
|
{
|
|
|
|
|
public IEnumerable<ConfigurationStore> GetConfigurations()
|
|
|
|
|
{
|
|
|
|
|
return new List<ConfigurationStore>
|
|
|
|
|
{
|
|
|
|
|
new ConfigurationStore
|
|
|
|
|
{
|
|
|
|
|
Key = "dlna",
|
|
|
|
|
ConfigurationType = typeof (DlnaOptions)
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|