Add Ability to set RootFolderPath for Net Import List

Fixed other things. Finished command to automatically add a movie.
This commit is contained in:
Leonardo Galli
2017-01-23 15:21:49 +01:00
parent 93d6505f85
commit 82f29cdc70
13 changed files with 157 additions and 9 deletions
@@ -214,7 +214,12 @@ namespace NzbDrone.Core.NetImport
{
var response = FetchIndexerResponse(request);
return parser.ParseResponse(response).ToList();
return parser.ParseResponse(response).ToList().Select(m =>
{
m.RootFolderPath = ((NetImportDefinition) Definition).RootFolderPath;
m.ProfileId = ((NetImportDefinition) Definition).ProfileId;
return m;
}).ToList();
}
protected virtual NetImportResponse FetchIndexerResponse(NetImportRequest request)