mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Post Processing has been implemented, still need to finish app for SAB to NzbDrone.
This commit is contained in:
parent
ce79ab2827
commit
1314d00c97
18 changed files with 345 additions and 50 deletions
27
NzbDrone.Web/Controllers/ApiController.cs
Normal file
27
NzbDrone.Web/Controllers/ApiController.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Xml.Linq;
|
||||
using NzbDrone.Core;
|
||||
using NzbDrone.Core.Providers;
|
||||
|
||||
namespace NzbDrone.Web.Controllers
|
||||
{
|
||||
public class ApiController : Controller
|
||||
{
|
||||
private readonly IPostProcessingProvider _postProcessingProvider;
|
||||
|
||||
public ApiController(IPostProcessingProvider postProcessingProvider)
|
||||
{
|
||||
_postProcessingProvider = postProcessingProvider;
|
||||
}
|
||||
|
||||
public ActionResult ProcessEpisode(string dir, string nzbName)
|
||||
{
|
||||
_postProcessingProvider.ProcessEpisode(dir, nzbName);
|
||||
return Content("ok");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue