Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/blame/commit/0c57c6a6c1294cc05295f57968f7c1935d9d08d3/NzbDrone.Api/Episodes/EpisodeConnection.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.AspNet.SignalR;
|
|
|
|
|
using Microsoft.AspNet.SignalR.Infrastructure;
|
|
|
|
|
using NzbDrone.Api.SignalR;
|
|
|
|
|
using NzbDrone.Common.Messaging;
|
|
|
|
|
using NzbDrone.Core.Download;
|
|
|
|
|
using NzbDrone.Core.Tv;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Api.Episodes
|
|
|
|
|
{
|
|
|
|
|
public class EpisodeConnection : BasicResourceConnection<Episode>, IHandleAsync<EpisodeGrabbedEvent>
|
|
|
|
|
{
|
|
|
|
|
public override string Resource
|
|
|
|
|
{
|
|
|
|
|
get { return "/Episodes"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void HandleAsync(EpisodeGrabbedEvent message)
|
|
|
|
|
{
|
|
|
|
|
var context = ((ConnectionManager)GlobalHost.ConnectionManager).GetConnection(GetType());
|
|
|
|
|
context.Connection.Broadcast(message);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|