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/3ee426ae44936e636f6f463167bd0031bf043cbe/MediaBrowser.Server.Startup.Common/Migrations/OmdbEpisodeProviderMigration.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using MediaBrowser.Controller.Configuration;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Server.Startup.Common.Migrations
|
|
|
|
|
{
|
|
|
|
|
class OmdbEpisodeProviderMigration : IVersionMigration
|
|
|
|
|
{
|
|
|
|
|
private readonly IServerConfigurationManager _config;
|
|
|
|
|
private const string _providerName = "The Open Movie Database";
|
|
|
|
|
|
|
|
|
|
public OmdbEpisodeProviderMigration(IServerConfigurationManager config)
|
|
|
|
|
{
|
|
|
|
|
_config = config;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Run()
|
|
|
|
|
{
|
|
|
|
|
var migrationKey = this.GetType().FullName;
|
|
|
|
|
var migrationKeyList = _config.Configuration.Migrations.ToList();
|
|
|
|
|
|
|
|
|
|
if (!migrationKeyList.Contains(migrationKey))
|
|
|
|
|
{
|
|
|
|
|
foreach (var metaDataOption in _config.Configuration.MetadataOptions)
|
|
|
|
|
{
|
|
|
|
|
if (metaDataOption.ItemType == "Episode")
|
|
|
|
|
{
|
|
|
|
|
var disabledFetchers = metaDataOption.DisabledMetadataFetchers.ToList();
|
|
|
|
|
if (!disabledFetchers.Contains(_providerName))
|
|
|
|
|
{
|
|
|
|
|
disabledFetchers.Add(_providerName);
|
|
|
|
|
metaDataOption.DisabledMetadataFetchers = disabledFetchers.ToArray();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
migrationKeyList.Add(migrationKey);
|
|
|
|
|
_config.Configuration.Migrations = migrationKeyList.ToArray();
|
|
|
|
|
_config.SaveConfiguration();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|