mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 07:46:05 -07:00
small fix
This commit is contained in:
parent
4f71969ee5
commit
a5cbd5dfd6
1 changed files with 6 additions and 3 deletions
|
@ -536,9 +536,12 @@ namespace PlexRequests.UI.Modules
|
||||||
{
|
{
|
||||||
// Get the JSON from the request
|
// Get the JSON from the request
|
||||||
var req = (Dictionary<string, object>.ValueCollection)Request.Form.Values;
|
var req = (Dictionary<string, object>.ValueCollection)Request.Form.Values;
|
||||||
var json = req.FirstOrDefault()?.ToString();
|
EpisodeRequestModel episodeModel = null;
|
||||||
var episodeModel = JsonConvert.DeserializeObject<EpisodeRequestModel>(json); // Convert it into the object
|
if (req.Count == 1)
|
||||||
|
{
|
||||||
|
var json = req.FirstOrDefault()?.ToString();
|
||||||
|
episodeModel = JsonConvert.DeserializeObject<EpisodeRequestModel>(json); // Convert it into the object
|
||||||
|
}
|
||||||
var episodeRequest = false;
|
var episodeRequest = false;
|
||||||
|
|
||||||
var settings = await PrService.GetSettingsAsync();
|
var settings = await PrService.GetSettingsAsync();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue