Ejemplo n.º 1
0
        public async Task <IActionResult> SaveTvShowsAsync([FromBody] SaveOmbiSettingsModel model)
        {
            var tvShowsSettings = new TvShowsSettings
            {
                Client  = DownloadClient.Ombi,
                Command = model.Command.Trim(),
            };

            var ombiSettings = ConvertToOmbiSettings(model);

            DownloadClientsSettingsRepository.SetOmbi(tvShowsSettings, ombiSettings);

            return(Ok(new { ok = true }));
        }