mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07: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:
parent
2a8b598f4f
commit
738700537e
9 changed files with 244 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue