New: Import subtitles and extra files when importing media files

This commit is contained in:
Mark McDowall 2016-09-17 00:52:30 -07:00
parent 9a870a3709
commit 836131ebb1
2 changed files with 12 additions and 4 deletions

View File

@ -57,10 +57,6 @@ namespace NzbDrone.Core.Extras
extraFileManager.CreateAfterEpisodeImport(series, episodeFile); extraFileManager.CreateAfterEpisodeImport(series, episodeFile);
} }
// TODO: Remove
// Not importing files yet, testing that parsing is working properly first
return;
var sourcePath = localEpisode.Path; var sourcePath = localEpisode.Path;
var sourceFolder = _diskProvider.GetParentFolder(sourcePath); var sourceFolder = _diskProvider.GetParentFolder(sourcePath);
var sourceFileName = Path.GetFileNameWithoutExtension(sourcePath); var sourceFileName = Path.GetFileNameWithoutExtension(sourcePath);

View File

@ -76,4 +76,16 @@
</div> </div>
</div> </div>
</div> </div>
<div class="form-group">
<label class="col-sm-3 control-label">Import Extra Files</label>
<div class="col-sm-1 col-sm-push-5 help-inline">
<i class="icon-sonarr-form-info" title="Comma separated list of extra files to import, ie sub,nfo (.nfo will be imported as .nfo-orig)"/>
</div>
<div class="col-sm-5 col-sm-pull-1">
<input type="text" name="extraFileExtensions" class="form-control"/>
</div>
</div>
</fieldset> </fieldset>