mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 01:23:53 -07:00
EpisodeFile is downloaded if not available already
This commit is contained in:
parent
b1899b5f6f
commit
ce9166c6a9
8 changed files with 103 additions and 21 deletions
|
@ -16,10 +16,16 @@ namespace NzbDrone.Api.EpisodeFiles
|
|||
: base("/episodefile")
|
||||
{
|
||||
_mediaFileService = mediaFileService;
|
||||
GetResourceById = GetEpisodeFile;
|
||||
GetResourceAll = GetEpisodeFiles;
|
||||
UpdateResource = SetQuality;
|
||||
}
|
||||
|
||||
private EpisodeFileResource GetEpisodeFile(int id)
|
||||
{
|
||||
return ToResource(() => _mediaFileService.Get(id));
|
||||
}
|
||||
|
||||
private List<EpisodeFileResource> GetEpisodeFiles()
|
||||
{
|
||||
var seriesId = (int?)Request.Query.SeriesId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue