Ability to delete from Edit Series (link wasn't available before).

add .nzb to file when downloading, need to change to WebRequest/WebResponse to get the file so we can retrieve the actual file name... Use %NZBDRONE_PATH% to store NZB if path is not provided...
This commit is contained in:
Mark McDowall 2011-03-24 00:30:38 -07:00
parent f07b305684
commit 302949048b
2 changed files with 2 additions and 1 deletions

View File

@ -177,7 +177,7 @@ namespace NzbDrone.Core.Providers
if (_diskProvider.FolderExists(path))
{
var filename = path + Path.DirectorySeparatorChar + nzb.TitleFix;
var filename = path + Path.DirectorySeparatorChar + nzb.TitleFix + ".nzb";
if (_httpProvider.DownloadFile(nzb.Link.ToString(), filename))
AddToHistory(episodeParseResults, series, nzb, indexer);

View File

@ -94,6 +94,7 @@
<div>
<%: Html.ActionLink("Back to Show", "Details", new { seriesId = Model.SeriesId }) %> |
<%: Html.ActionLink("Back to List", "Index") %>
<%: Html.ActionLink("Delete Series", "Delete", new { seriesId = Model.SeriesId })%>
</div>
<div id="result"></div>