mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-02 08:47:59 +02:00
Bug: Fixed qualityProfile so it returns the selected cutoff in the model.
Now using trim before checking title.length for AddExistingSeries.
This commit is contained in:
@@ -118,6 +118,9 @@ namespace NzbDrone.Web.Controllers
|
||||
[HttpPost]
|
||||
public JsonResult AddExistingSeries(string path, string seriesName, int seriesId, int qualityProfileId)
|
||||
{
|
||||
if (seriesId == 0 || String.IsNullOrWhiteSpace(seriesName))
|
||||
return Json(new NotificationResult() { Title = "Failed", Text = "Invalid Series Information, Series not added.", NotificationType = NotificationType.Error });
|
||||
|
||||
try
|
||||
{
|
||||
_seriesProvider.AddSeries(path, seriesId, qualityProfileId);
|
||||
|
@@ -247,6 +247,7 @@ namespace NzbDrone.Web.Controllers
|
||||
model.Webdl = profile.Allowed.Contains(QualityTypes.WEBDL);
|
||||
model.Bluray720p = profile.Allowed.Contains(QualityTypes.Bluray720p);
|
||||
model.Bluray1080p = profile.Allowed.Contains(QualityTypes.Bluray1080p);
|
||||
model.Cutoff = profile.Cutoff;
|
||||
|
||||
return PartialView("QualityProfileItem", model);
|
||||
}
|
||||
|
Reference in New Issue
Block a user