2011-02-24 01:40:11 +01:00
|
|
|
using System.Collections.Generic;
|
2010-10-30 04:46:32 +02:00
|
|
|
using NzbDrone.Core.Model;
|
2010-10-21 03:49:23 +02: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 09:50:33 +01:00
|
|
|
List<EpisodeFile> Scan(Series series);
|
|
|
|
List<EpisodeFile> Scan(Series series, string path);
|
2010-10-24 09:46:58 +02:00
|
|
|
EpisodeFile ImportFile(Series series, string filePath);
|
2010-10-30 04:46:32 +02:00
|
|
|
string GenerateEpisodePath(EpisodeModel episode);
|
2011-02-25 02:18:22 +01:00
|
|
|
void CleanUp(List<EpisodeFile> files);
|
2011-02-18 07:49:23 +01:00
|
|
|
void DeleteFromDb(int fileId);
|
|
|
|
void DeleteFromDisk(int fileId, string path);
|
2011-02-22 07:22:40 +01:00
|
|
|
void Update(EpisodeFile episodeFile);
|
|
|
|
EpisodeFile GetEpisodeFile(int episodeFileId);
|
2011-02-24 01:40:11 +01:00
|
|
|
List<EpisodeFile> GetEpisodeFiles();
|
2010-10-21 03:49:23 +02:00
|
|
|
}
|
|
|
|
}
|