Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/b7ceb40d6efe083653734e6417b2f5e48b522872
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
50 additions and
7 deletions
@ -38,7 +38,6 @@ namespace Emby.Server.Implementations.EntryPoints
public Task RunAsync ( )
{
_installationManager . PluginUninstalled + = OnPluginUninstalled ;
_installationManager . PackageInstalling + = OnPackageInstalling ;
_installationManager . PackageInstallationCancelled + = OnPackageInstallationCancelled ;
_installationManager . PackageInstallationCompleted + = OnPackageInstallationCompleted ;
_installationManager . PackageInstallationFailed + = OnPackageInstallationFailed ;
@ -46,11 +45,6 @@ namespace Emby.Server.Implementations.EntryPoints
return Task . CompletedTask ;
}
private async void OnPackageInstalling ( object sender , InstallationInfo e )
{
await SendMessageToAdminSessions ( "PackageInstalling" , e ) . ConfigureAwait ( false ) ;
}
private async void OnPackageInstallationCancelled ( object sender , InstallationInfo e )
{
await SendMessageToAdminSessions ( "PackageInstallationCancelled" , e ) . ConfigureAwait ( false ) ;
@ -103,7 +97,6 @@ namespace Emby.Server.Implementations.EntryPoints
if ( dispose )
{
_installationManager . PluginUninstalled - = OnPluginUninstalled ;
_installationManager . PackageInstalling - = OnPackageInstalling ;
_installationManager . PackageInstallationCancelled - = OnPackageInstallationCancelled ;
_installationManager . PackageInstallationCompleted - = OnPackageInstallationCompleted ;
_installationManager . PackageInstallationFailed - = OnPackageInstallationFailed ;
@ -0,0 +1,31 @@
using System.Threading ;
using System.Threading.Tasks ;
using MediaBrowser.Controller.Events ;
using MediaBrowser.Controller.Events.Updates ;
using MediaBrowser.Controller.Session ;
namespace Jellyfin.Server.Implementations.Events.Consumers.Updates
{
/// <summary>
/// Notifies admin users when a plugin is being installed.
/// </summary>
public class PluginInstallingNotifier : IEventConsumer < PluginInstallingEventArgs >
{
private readonly ISessionManager _sessionManager ;
/// <summary>
/// Initializes a new instance of the <see cref="PluginInstallingNotifier"/> class.
/// </summary>
/// <param name="sessionManager">The session manager.</param>
public PluginInstallingNotifier ( ISessionManager sessionManager )
{
_sessionManager = sessionManager ;
}
/// <inheritdoc />
public async Task OnEvent ( PluginInstallingEventArgs eventArgs )
{
await _sessionManager . SendMessageToAdminSessions ( "PackageInstalling" , eventArgs . Argument , CancellationToken . None ) . ConfigureAwait ( false ) ;
}
}
}
@ -0,0 +1,19 @@
using Jellyfin.Data.Events ;
using MediaBrowser.Model.Updates ;
namespace MediaBrowser.Controller.Events.Updates
{
/// <summary>
/// An event that occurs when a plugin is installing.
/// </summary>
public class PluginInstallingEventArgs : GenericEventArgs < InstallationInfo >
{
/// <summary>
/// Initializes a new instance of the <see cref="PluginInstallingEventArgs"/> class.
/// </summary>
/// <param name="arg">The installation info.</param>
public PluginInstallingEventArgs ( InstallationInfo arg ) : base ( arg )
{
}
}
}