pull/470/head
tidusjar 8 years ago
parent 4f71969ee5
commit a5cbd5dfd6

@ -536,9 +536,12 @@ namespace PlexRequests.UI.Modules
{
// Get the JSON from the request
var req = (Dictionary<string, object>.ValueCollection)Request.Form.Values;
var json = req.FirstOrDefault()?.ToString();
var episodeModel = JsonConvert.DeserializeObject<EpisodeRequestModel>(json); // Convert it into the object
EpisodeRequestModel episodeModel = null;
if (req.Count == 1)
{
var json = req.FirstOrDefault()?.ToString();
episodeModel = JsonConvert.DeserializeObject<EpisodeRequestModel>(json); // Convert it into the object
}
var episodeRequest = false;
var settings = await PrService.GetSettingsAsync();

Loading…
Cancel
Save