mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Episode RenamingProvider created, allows renaming by Every Episode for Every Series, by Series, by Season, or individual Episodes.
Currently uses Hard-Coded Naming Convention, Undecided on SAB or SB configuration style, SAB's is more robust (and flawless? -SP).
This commit is contained in:
@@ -98,7 +98,6 @@ namespace NzbDrone.Core.Providers
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public string GenerateEpisodePath(EpisodeModel episode)
|
||||
{
|
||||
var episodeNamePattern = _configProvider.EpisodeNameFormat;
|
||||
@@ -123,6 +122,16 @@ namespace NzbDrone.Core.Providers
|
||||
_repository.Delete<EpisodeFile>(fileId);
|
||||
}
|
||||
|
||||
public void Update(EpisodeFile episodeFile)
|
||||
{
|
||||
_repository.Update(episodeFile);
|
||||
}
|
||||
|
||||
public EpisodeFile GetEpisodeFile(int episodeFileId)
|
||||
{
|
||||
return _repository.Single<EpisodeFile>(episodeFileId);
|
||||
}
|
||||
|
||||
private List<string> GetMediaFileList(string path)
|
||||
{
|
||||
Logger.Debug("Scanning '{0}' for episodes", path);
|
||||
|
Reference in New Issue
Block a user