|
|
@ -15,10 +15,8 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
public class SeriesController : Controller
|
|
|
|
public class SeriesController : Controller
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private readonly EpisodeProvider _episodeProvider;
|
|
|
|
private readonly EpisodeProvider _episodeProvider;
|
|
|
|
private readonly MediaFileProvider _mediaFileProvider;
|
|
|
|
|
|
|
|
private readonly QualityProvider _qualityProvider;
|
|
|
|
private readonly QualityProvider _qualityProvider;
|
|
|
|
private readonly RenameProvider _renameProvider;
|
|
|
|
private readonly RenameProvider _renameProvider;
|
|
|
|
private readonly RootDirProvider _rootDirProvider;
|
|
|
|
|
|
|
|
private readonly SeriesProvider _seriesProvider;
|
|
|
|
private readonly SeriesProvider _seriesProvider;
|
|
|
|
private readonly TvDbProvider _tvDbProvider;
|
|
|
|
private readonly TvDbProvider _tvDbProvider;
|
|
|
|
private readonly JobProvider _jobProvider;
|
|
|
|
private readonly JobProvider _jobProvider;
|
|
|
@ -28,17 +26,16 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
|
|
|
|
|
|
|
|
public SeriesController(SeriesProvider seriesProvider,
|
|
|
|
public SeriesController(SeriesProvider seriesProvider,
|
|
|
|
EpisodeProvider episodeProvider,
|
|
|
|
EpisodeProvider episodeProvider,
|
|
|
|
QualityProvider qualityProvider, MediaFileProvider mediaFileProvider,
|
|
|
|
QualityProvider qualityProvider,
|
|
|
|
RenameProvider renameProvider, RootDirProvider rootDirProvider,
|
|
|
|
RenameProvider renameProvider,
|
|
|
|
TvDbProvider tvDbProvider, JobProvider jobProvider,
|
|
|
|
TvDbProvider tvDbProvider,
|
|
|
|
|
|
|
|
JobProvider jobProvider,
|
|
|
|
SeasonProvider seasonProvider)
|
|
|
|
SeasonProvider seasonProvider)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_seriesProvider = seriesProvider;
|
|
|
|
_seriesProvider = seriesProvider;
|
|
|
|
_episodeProvider = episodeProvider;
|
|
|
|
_episodeProvider = episodeProvider;
|
|
|
|
_qualityProvider = qualityProvider;
|
|
|
|
_qualityProvider = qualityProvider;
|
|
|
|
_mediaFileProvider = mediaFileProvider;
|
|
|
|
|
|
|
|
_renameProvider = renameProvider;
|
|
|
|
_renameProvider = renameProvider;
|
|
|
|
_rootDirProvider = rootDirProvider;
|
|
|
|
|
|
|
|
_tvDbProvider = tvDbProvider;
|
|
|
|
_tvDbProvider = tvDbProvider;
|
|
|
|
_jobProvider = jobProvider;
|
|
|
|
_jobProvider = jobProvider;
|
|
|
|
_seasonProvider = seasonProvider;
|
|
|
|
_seasonProvider = seasonProvider;
|
|
|
@ -137,6 +134,7 @@ namespace NzbDrone.Web.Controllers
|
|
|
|
Overview = c.Overview,
|
|
|
|
Overview = c.Overview,
|
|
|
|
AirDate = c.AirDate,
|
|
|
|
AirDate = c.AirDate,
|
|
|
|
Path = GetEpisodePath(c.EpisodeFile),
|
|
|
|
Path = GetEpisodePath(c.EpisodeFile),
|
|
|
|
|
|
|
|
Status = c.Status.ToString(),
|
|
|
|
Quality = c.EpisodeFile == null
|
|
|
|
Quality = c.EpisodeFile == null
|
|
|
|
? String.Empty
|
|
|
|
? String.Empty
|
|
|
|
: c.EpisodeFile.Quality.ToString()
|
|
|
|
: c.EpisodeFile.Quality.ToString()
|
|
|
|