|
|
@ -40,27 +40,34 @@ namespace NzbDrone.Core.Providers
|
|
|
|
_series = seriesProvider;
|
|
|
|
_series = seriesProvider;
|
|
|
|
_tvDb = tvDbProvider;
|
|
|
|
_tvDb = tvDbProvider;
|
|
|
|
_seasons = seasonProvider;
|
|
|
|
_seasons = seasonProvider;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public BasicEpisode GetEpisode(long id)
|
|
|
|
public EpisodeInfo GetEpisode(long id)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
return _sonicRepo.Single<EpisodeInfo>(e => e.EpisodeId == id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public BasicEpisode UpdateEpisode(BasicEpisode episode)
|
|
|
|
public void UpdateEpisode(EpisodeInfo episode)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
var episodeToUpdate = _sonicRepo.Single<EpisodeInfo>(e => e.EpisodeId == episode.EpisodeId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
episodeToUpdate.AirDate = episode.AirDate;
|
|
|
|
|
|
|
|
episodeToUpdate.Overview = episode.Overview;
|
|
|
|
|
|
|
|
episodeToUpdate.Title = episode.Title;
|
|
|
|
|
|
|
|
episodeToUpdate.EpisodeNumber = episode.EpisodeNumber;
|
|
|
|
|
|
|
|
episodeToUpdate.SeasonNumber = episode.SeasonNumber;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_sonicRepo.Update<EpisodeInfo>(episodeToUpdate);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IList<BasicEpisode> GetEpisodesBySeason(long seasonId)
|
|
|
|
public IList<EpisodeInfo> GetEpisodesBySeason(long seasonId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
return _sonicRepo.Find<EpisodeInfo>(e => e.SeasonId == seasonId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IList<BasicEpisode> GetEpisodeBySeries(long seriesId)
|
|
|
|
public IList<EpisodeInfo> GetEpisodeBySeries(long seriesId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
return _sonicRepo.Find<EpisodeInfo>(e => e.SeriesId == seriesId);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String GetSabTitle(BasicEpisode episode)
|
|
|
|
public String GetSabTitle(BasicEpisode episode)
|
|
|
@ -70,7 +77,6 @@ namespace NzbDrone.Core.Providers
|
|
|
|
|
|
|
|
|
|
|
|
//TODO: This method should return a standard title for the sab episode.
|
|
|
|
//TODO: This method should return a standard title for the sab episode.
|
|
|
|
throw new NotImplementedException();
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -78,7 +84,7 @@ namespace NzbDrone.Core.Providers
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="episode">Episode that needs to be checked</param>
|
|
|
|
/// <param name="episode">Episode that needs to be checked</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public bool IsNeeded(BasicEpisode episode)
|
|
|
|
public bool IsNeeded(RemoteEpisode episode)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -153,6 +159,5 @@ namespace NzbDrone.Core.Providers
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|