1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-22 22:16:13 -04:00
This commit is contained in:
Mark McDowall
2017-02-10 22:46:39 -08:00
committed by Taloth Saldono
parent 211f3769e1
commit 7297c1b8e4
399 changed files with 10618 additions and 1043 deletions
@@ -10,6 +10,7 @@ namespace NzbDrone.Core.MediaFiles
List<EpisodeFile> GetFilesBySeries(int seriesId);
List<EpisodeFile> GetFilesBySeason(int seriesId, int seasonNumber);
List<EpisodeFile> GetFilesWithoutMediaInfo();
List<EpisodeFile> GetFilesWithRelativePath(int seriesId, string relativePath);
}
@@ -36,5 +37,12 @@ namespace NzbDrone.Core.MediaFiles
{
return Query.Where(c => c.MediaInfo == null).ToList();
}
public List<EpisodeFile> GetFilesWithRelativePath(int seriesId, string relativePath)
{
return Query.Where(c => c.SeriesId == seriesId)
.AndWhere(c => c.RelativePath == relativePath)
.ToList();
}
}
}
}