mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-27 22:57:09 -04:00
Patch/onedr0p (#716)
* Alter IMDb lists to what was requested: #697 * Update Pending Release * Tests (these need to be updated further) * Alter table migration, movieId already exists * Update HouseKeeping for pending release * Fix migratiom and pendingrelease housekeeping
This commit is contained in:
@@ -8,6 +8,8 @@ namespace NzbDrone.Core.Download.Pending
|
||||
{
|
||||
void DeleteBySeriesId(int seriesId);
|
||||
List<PendingRelease> AllBySeriesId(int seriesId);
|
||||
void DeleteByMovieId(int movieId);
|
||||
List<PendingRelease> AllByMovieId(int movieId);
|
||||
}
|
||||
|
||||
public class PendingReleaseRepository : BasicRepository<PendingRelease>, IPendingReleaseRepository
|
||||
@@ -26,5 +28,15 @@ namespace NzbDrone.Core.Download.Pending
|
||||
{
|
||||
return Query.Where(p => p.SeriesId == seriesId);
|
||||
}
|
||||
|
||||
public void DeleteByMovieId(int movieId)
|
||||
{
|
||||
Delete(r => r.MovieId == movieId);
|
||||
}
|
||||
|
||||
public List<PendingRelease> AllByMovieId(int movieId)
|
||||
{
|
||||
return Query.Where(p => p.MovieId == movieId);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user