Beispiel #1
0
        public override void OnHealthIssue(HealthCheck.HealthCheck healthCheck)
        {
            var payload = new WebhookHealthPayload
            {
                EventType = WebhookEventType.Health,
                Level     = healthCheck.Type,
                Message   = healthCheck.Message,
                Type      = healthCheck.Source.Name,
                WikiUrl   = healthCheck.WikiUrl?.ToString()
            };

            _proxy.SendWebhook(payload, Settings);
        }
Beispiel #2
0
        public override void OnGrab(GrabMessage message)
        {
            var remoteMovie = message.RemoteMovie;
            var quality     = message.Quality;

            var payload = new WebhookGrabPayload
            {
                EventType   = "Grab",
                Movie       = new WebhookMovie(message.Movie),
                RemoteMovie = new WebhookRemoteMovie(remoteMovie),
                Release     = new WebhookRelease(quality, remoteMovie)
            };

            _proxy.SendWebhook(payload, Settings);
        }
Beispiel #3
0
        public override void OnGrab(GrabMessage message)
        {
            var remoteEpisode = message.Episode;
            var quality       = message.Quality;

            var payload = new WebhookGrabPayload
            {
                EventType      = WebhookEventType.Grab,
                Series         = new WebhookSeries(message.Series),
                Episodes       = remoteEpisode.Episodes.ConvertAll(x => new WebhookEpisode(x)),
                Release        = new WebhookRelease(quality, remoteEpisode),
                DownloadClient = message.DownloadClient,
                DownloadId     = message.DownloadId
            };

            _proxy.SendWebhook(payload, Settings);
        }
Beispiel #4
0
        public override void OnGrab(GrabMessage message)
        {
            var remoteBook = message.Book;
            var quality    = message.Quality;

            var payload = new WebhookGrabPayload
            {
                EventType = "Grab",
                Author    = new WebhookAuthor(message.Author),
                Books     = remoteBook.Books.ConvertAll(x => new WebhookBook(x)
                {
                    // TODO: Stop passing these parameters inside an album v3
                    Quality        = quality.Quality.Name,
                    QualityVersion = quality.Revision.Version,
                    ReleaseGroup   = remoteBook.ParsedBookInfo.ReleaseGroup
                }),
                Release = new WebhookRelease(quality, remoteBook)
            };

            _proxy.SendWebhook(payload, Settings);
        }
Beispiel #5
0
        public override void OnGrab(GrabMessage message)
        {
            var remoteEpisode = message.Episode;
            var quality       = message.Quality;

            var payload = new WebhookGrabPayload
            {
                EventType = "Grab",
                Series    = new WebhookSeries(message.Series),
                Episodes  = remoteEpisode.Episodes.ConvertAll(x => new WebhookEpisode(x)
                {
                    // TODO: Stop passing these parameters inside an episode v3
                    Quality        = quality.Quality.Name,
                    QualityVersion = quality.Revision.Version,
                    ReleaseGroup   = remoteEpisode.ParsedEpisodeInfo.ReleaseGroup
                }),
                Release = new WebhookRelease(quality, remoteEpisode)
            };

            _proxy.SendWebhook(payload, Settings);
        }
Beispiel #6
0
        public override void OnGrab(GrabMessage message)
        {
            var remoteAlbum = message.Album;
            var quality     = message.Quality;

            var payload = new WebhookGrabPayload

            {
                EventType = "Grab",
                Artist    = new WebhookArtist(message.Artist),
                Albums    = remoteAlbum.Albums.ConvertAll(x => new WebhookAlbum(x)
                {
                    // TODO: Stop passing these parameters inside an album v3
                    Quality        = quality.Quality.Name,
                    QualityVersion = quality.Revision.Version,
                    ReleaseGroup   = remoteAlbum.ParsedAlbumInfo.ReleaseGroup
                }),
                Release = new WebhookRelease(quality, remoteAlbum)
            };

            _proxy.SendWebhook(payload, Settings);
        }
Beispiel #7
0
        public override void OnGrab(GrabMessage message)
        {
            var remoteMovie = message.RemoteMovie;
            var quality     = message.Quality;

            var payload = new WebhookGrabPayload
            {
                EventType          = WebhookEventType.Grab,
                Movie              = new WebhookMovie(message.Movie),
                RemoteMovie        = new WebhookRemoteMovie(remoteMovie),
                Release            = new WebhookRelease(quality, remoteMovie),
                DownloadClient     = message.DownloadClientName,
                DownloadClientType = message.DownloadClientType,
                DownloadId         = message.DownloadId
            };

            _proxy.SendWebhook(payload, Settings);
        }