|
|
@ -20,12 +20,15 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
private readonly IRssSyncProvider _rssSyncProvider;
|
|
|
|
private readonly IRssSyncProvider _rssSyncProvider;
|
|
|
|
private readonly IQualityProvider _qualityProvider;
|
|
|
|
private readonly IQualityProvider _qualityProvider;
|
|
|
|
private readonly IMediaFileProvider _mediaFileProvider;
|
|
|
|
private readonly IMediaFileProvider _mediaFileProvider;
|
|
|
|
|
|
|
|
private readonly IRenameProvider _renameProvider;
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// GET: /Series/
|
|
|
|
// GET: /Series/
|
|
|
|
|
|
|
|
|
|
|
|
public SeriesController(ISyncProvider syncProvider, ISeriesProvider seriesProvider,
|
|
|
|
public SeriesController(ISyncProvider syncProvider, ISeriesProvider seriesProvider,
|
|
|
|
IEpisodeProvider episodeProvider, IRssSyncProvider rssSyncProvider,
|
|
|
|
IEpisodeProvider episodeProvider, IRssSyncProvider rssSyncProvider,
|
|
|
|
IQualityProvider qualityProvider, IMediaFileProvider mediaFileProvider)
|
|
|
|
IQualityProvider qualityProvider, IMediaFileProvider mediaFileProvider,
|
|
|
|
|
|
|
|
IRenameProvider renameProvider)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_seriesProvider = seriesProvider;
|
|
|
|
_seriesProvider = seriesProvider;
|
|
|
|
_episodeProvider = episodeProvider;
|
|
|
|
_episodeProvider = episodeProvider;
|
|
|
@ -33,6 +36,7 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
_rssSyncProvider = rssSyncProvider;
|
|
|
|
_rssSyncProvider = rssSyncProvider;
|
|
|
|
_qualityProvider = qualityProvider;
|
|
|
|
_qualityProvider = qualityProvider;
|
|
|
|
_mediaFileProvider = mediaFileProvider;
|
|
|
|
_mediaFileProvider = mediaFileProvider;
|
|
|
|
|
|
|
|
_renameProvider = renameProvider;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ActionResult Index()
|
|
|
|
public ActionResult Index()
|
|
|
@ -202,5 +206,31 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
|
|
|
|
|
|
|
|
return RedirectToAction("Details", new { seriesId });
|
|
|
|
return RedirectToAction("Details", new { seriesId });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ActionResult RenameAll()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_renameProvider.RenameAll();
|
|
|
|
|
|
|
|
return RedirectToAction("Index");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ActionResult RenameSeries(int seriesId)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_renameProvider.RenameSeries(seriesId);
|
|
|
|
|
|
|
|
return RedirectToAction("Index");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ActionResult RenameSeason(int seasonId)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
//Todo: Stay of Series Detail... AJAX?
|
|
|
|
|
|
|
|
_renameProvider.RenameSeason(seasonId);
|
|
|
|
|
|
|
|
return RedirectToAction("Index");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ActionResult RenameEpisode(int episodeId)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
//Todo: Stay of Series Detail... AJAX?
|
|
|
|
|
|
|
|
_renameProvider.RenameEpisode(episodeId);
|
|
|
|
|
|
|
|
return RedirectToAction("Index");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|