Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/0a70c55021716bf91a8b4be5ac1188b85363b151?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
9 additions and
10 deletions
@ -37,7 +37,6 @@
<PackageReference Include= "ServiceStack.Text.Core" Version= "5.8.0" />
<PackageReference Include= "sharpcompress" Version= "0.25.0" />
<PackageReference Include= "SQLitePCL.pretty.netstandard" Version= "2.1.0" />
<PackageReference Include= "System.Interactive.Async" Version= "4.0.0" />
</ItemGroup>
<ItemGroup >
@ -55,9 +55,8 @@ namespace Emby.Server.Implementations.ScheduledTasks
{
progress . Report ( 0 ) ;
var packagesToInstall = await _installationManager . GetAvailablePluginUpdates ( cancellationToken )
. ToListAsync ( cancellationToken )
. ConfigureAwait ( false ) ;
var packageFetchTask = _installationManager . GetAvailablePluginUpdates ( cancellationToken ) ;
var packagesToInstall = ( await packageFetchTask . ConfigureAwait ( false ) ) . ToList ( ) ;
progress . Report ( 10 ) ;
@ -189,16 +189,17 @@ namespace Emby.Server.Implementations.Updates
}
/// <inheritdoc />
public async IAsync Enumerable< PackageVersionInfo > GetAvailablePluginUpdates ( [ EnumeratorCancellation ] CancellationToken cancellationToken = default )
public async Task< I Enumerable< PackageVersionInfo > > GetAvailablePluginUpdates ( CancellationToken cancellationToken = default )
{
var catalog = await GetAvailablePackages ( cancellationToken ) . ConfigureAwait ( false ) ;
return GetAvailablePluginUpdates ( catalog ) ;
}
var systemUpdateLevel = _applicationHost . SystemUpdateLevel ;
// Figure out what needs to be installed
private IEnumerable < PackageVersionInfo > GetAvailablePluginUpdates ( IReadOnlyList < PackageInfo > pluginCatalog )
{
foreach ( var plugin in _applicationHost . Plugins )
{
var compatibleversions = GetCompatibleVersions ( c atalog, plugin . Name , plugin . Id , plugin . Version , systemUpdateLevel) ;
var compatibleversions = GetCompatibleVersions ( pluginC atalog, plugin . Name , plugin . Id , plugin . Version , _applicationHo st. S ystemUpdateLevel) ;
var version = compatibleversions . FirstOrDefault ( y = > y . Version > plugin . Version ) ;
if ( version ! = null
& & ! CompletedInstallations . Any ( x = > string . Equals ( x . AssemblyGuid , version . guid , StringComparison . OrdinalIgnoreCase ) ) )
@ -92,7 +92,7 @@ namespace MediaBrowser.Common.Updates
/// </summary>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>The available plugin updates.</returns>
IAsyncEnumerable< PackageVersionInfo > GetAvailablePluginUpdates ( CancellationToken cancellationToken = default ) ;
Task< IEnumerable < PackageVersionInfo > > GetAvailablePluginUpdates ( CancellationToken cancellationToken = default ) ;
/// <summary>
/// Installs the package.