mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Updated JobProvider to allow jobs with two targets.
JobQueueItem class created instead of using Tuples. Added Search for Season and Rename Season jobs , plus links for them on Series/Details. Add GetSeasonFiles added to MediaFileProvider.
This commit is contained in:
parent
56da830296
commit
350e0388de
32 changed files with 454 additions and 108 deletions
|
@ -31,8 +31,6 @@ namespace NzbDrone.Core.Providers
|
|||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
public virtual int Add(EpisodeFile episodeFile)
|
||||
{
|
||||
return Convert.ToInt32(_database.Insert(episodeFile));
|
||||
|
@ -65,7 +63,12 @@ namespace NzbDrone.Core.Providers
|
|||
|
||||
public virtual IList<EpisodeFile> GetSeriesFiles(int seriesId)
|
||||
{
|
||||
return _database.Fetch<EpisodeFile>("WHERE seriesId= @0", seriesId);
|
||||
return _database.Fetch<EpisodeFile>("WHERE SeriesId= @0", seriesId);
|
||||
}
|
||||
|
||||
public virtual IList<EpisodeFile> GetSeasonFiles(int seriesId, int seasonNumber)
|
||||
{
|
||||
return _database.Fetch<EpisodeFile>("WHERE SeriesId= @0 AND SeasonNumber = @1", seriesId, seasonNumber);
|
||||
}
|
||||
|
||||
public virtual Tuple<int, int> GetEpisodeFilesCount(int seriesId)
|
||||
|
@ -132,7 +135,6 @@ namespace NzbDrone.Core.Providers
|
|||
return updated;
|
||||
}
|
||||
|
||||
|
||||
public virtual string GetNewFilename(IList<Episode> episodes, string seriesTitle, QualityTypes quality)
|
||||
{
|
||||
var separatorStyle = EpisodeSortingHelper.GetSeparatorStyle(_configProvider.SortingSeparatorStyle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue