Merge pull request #3577 from crobibero/package-install-repo

Specify plugin repo on plugin installation
This commit is contained in:
Bond-009
2020-09-29 18:24:11 +02:00
committed by GitHub
3 changed files with 25 additions and 2 deletions

View File

@@ -155,7 +155,12 @@ namespace Emby.Server.Implementations.Updates
var result = new List<PackageInfo>();
foreach (RepositoryInfo repository in _config.Configuration.PluginRepositories)
{
result.AddRange(await GetPackages(repository.Url, cancellationToken).ConfigureAwait(true));
foreach (var package in await GetPackages(repository.Url, cancellationToken).ConfigureAwait(true))
{
package.repositoryName = repository.Name;
package.repositoryUrl = repository.Url;
result.Add(package);
}
}
return result;