mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
Refactor and Enable Renaming for Album and Artist Files (#61)
Refactor and Enable Renaming for Album and Artist Files
This commit is contained in:
@@ -9,6 +9,7 @@ namespace NzbDrone.Core.MediaFiles
|
||||
public interface IMediaFileRepository : IBasicRepository<TrackFile>
|
||||
{
|
||||
List<TrackFile> GetFilesByArtist(int artistId);
|
||||
List<TrackFile> GetFilesByAlbum(int albumId);
|
||||
List<TrackFile> GetFilesWithoutMediaInfo();
|
||||
}
|
||||
|
||||
@@ -29,5 +30,10 @@ namespace NzbDrone.Core.MediaFiles
|
||||
{
|
||||
return Query.Where(c => c.ArtistId == artistId).ToList();
|
||||
}
|
||||
|
||||
public List<TrackFile> GetFilesByAlbum(int albumId)
|
||||
{
|
||||
return Query.Where(c => c.AlbumId == albumId).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user