mirror of https://github.com/jellyfin/jellyfin.git
simplify the custom repository feature for now
This commit is contained in:
parent
d6184dbadd
commit
8ac2f1bb8b
|
@ -156,11 +156,6 @@ namespace Emby.Server.Implementations.Updates
|
||||||
var result = new List<PackageInfo>();
|
var result = new List<PackageInfo>();
|
||||||
foreach (RepositoryInfo repository in _config.Configuration.PluginRepositories)
|
foreach (RepositoryInfo repository in _config.Configuration.PluginRepositories)
|
||||||
{
|
{
|
||||||
if (!repository.Enabled)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
result.AddRange(await GetPackages(repository.Url, cancellationToken).ConfigureAwait(true));
|
result.AddRange(await GetPackages(repository.Url, cancellationToken).ConfigureAwait(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,7 @@ namespace Jellyfin.Server.Migrations.Routines
|
||||||
private readonly RepositoryInfo _defaultRepositoryInfo = new RepositoryInfo
|
private readonly RepositoryInfo _defaultRepositoryInfo = new RepositoryInfo
|
||||||
{
|
{
|
||||||
Name = "Jellyfin Stable",
|
Name = "Jellyfin Stable",
|
||||||
Url = "https://repo.jellyfin.org/releases/plugin/manifest-stable.json",
|
Url = "https://repo.jellyfin.org/releases/plugin/manifest-stable.json"
|
||||||
Enabled = true
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -18,11 +18,5 @@ namespace MediaBrowser.Model.Updates
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The URL.</value>
|
/// <value>The URL.</value>
|
||||||
public string Url { get; set; }
|
public string Url { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets the enabled status of the repository.
|
|
||||||
/// </summary>
|
|
||||||
/// <value>The enabled status.</value>
|
|
||||||
public bool Enabled { get; set; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue