mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -07: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:
parent
0e246b2cd9
commit
4796b81cf1
3 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue