2011-02-24 00:40:11 +00:00
|
|
|
using System.Collections.Generic;
|
2010-10-30 02:46:32 +00:00
|
|
|
using NzbDrone.Core.Model;
|
2010-10-21 01:49:23 +00:00
|
|
|
using NzbDrone.Core.Repository;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Providers
|
|
|
|
{
|
|
|
|
public interface IMediaFileProvider
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Scans the specified series folder for media files
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="series">The series to be scanned</param>
|
2011-03-03 08:50:33 +00:00
|
|
|
List<EpisodeFile> Scan(Series series);
|
|
|
|
List<EpisodeFile> Scan(Series series, string path);
|
2010-10-24 07:46:58 +00:00
|
|
|
EpisodeFile ImportFile(Series series, string filePath);
|
2011-02-25 01:18:22 +00:00
|
|
|
void CleanUp(List<EpisodeFile> files);
|
2011-02-18 06:49:23 +00:00
|
|
|
void DeleteFromDb(int fileId);
|
|
|
|
void DeleteFromDisk(int fileId, string path);
|
2011-02-22 06:22:40 +00:00
|
|
|
void Update(EpisodeFile episodeFile);
|
|
|
|
EpisodeFile GetEpisodeFile(int episodeFileId);
|
2011-02-24 00:40:11 +00:00
|
|
|
List<EpisodeFile> GetEpisodeFiles();
|
2010-10-21 01:49:23 +00:00
|
|
|
}
|
|
|
|
}
|