more nd icons and some spelling fixes

pull/3113/head
Mark McDowall 11 years ago
parent 3ef9b40754
commit b1e5646d7d

@ -25,8 +25,7 @@ namespace NzbDrone.Core.Indexers.Newznab
if (sizeElement == null)
{
var message = String.Format("Unable to parse size from: {0} [{1}]", currentResult.Title, currentResult.Indexer);
throw new SizeParsingException(message);
throw new SizeParsingException("Unable to parse size from: {0} [{1}]", currentResult.Title, currentResult.Indexer);
}
currentResult.Size = Convert.ToInt64(sizeElement.Attribute("value").Value);

@ -2,12 +2,13 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NzbDrone.Common.Exceptions;
namespace NzbDrone.Core.Indexers.Newznab
{
public class SizeParsingException : Exception
public class SizeParsingException : NzbDroneException
{
public SizeParsingException(string message) : base(message)
public SizeParsingException(string message, params object[] args) : base(message, args)
{
}
}

@ -19,5 +19,10 @@ namespace NzbDrone.Core.Parser.Model
{
return Episodes.Any(e => e.AirDateUtc >= DateTime.Today.AddDays(-14));
}
public override string ToString()
{
return Report.Title;
}
}
}

@ -73,8 +73,8 @@ namespace NzbDrone.Core.RootFolders
if (!_diskProvider.FolderExists(rootFolder.Path))
throw new DirectoryNotFoundException("Can't add root directory that doesn't exist.");
if (All().Exists(r => DiskProvider.PathEquals(r.Path, rootFolder.Path)))
throw new InvalidOperationException("Recent directory already exist.");
if (all.Exists(r => DiskProvider.PathEquals(r.Path, rootFolder.Path)))
throw new InvalidOperationException("Recent directory already exists.");
if (!String.IsNullOrWhiteSpace(_configService.DownloadedEpisodesFolder) &&
DiskProvider.PathEquals(_configService.DownloadedEpisodesFolder, rootFolder.Path))

@ -92,7 +92,7 @@
}
.icon-nd-downloading:before {
.icon(@download-alt);
.icon(@cloud-download);
}
.icon-nd-tba:before {
@ -106,3 +106,7 @@
.icon-nd-not-aired:before {
.icon(@time);
}
.icon-nd-imported:before {
.icon(@download-alt);
}

@ -18,7 +18,7 @@ define(
switch (this.cellValue.get('eventType')) {
case 'grabbed':
icon = 'icon-cloud-download';
icon = 'icon-nd-downloading';
toolTip = 'Episode grabbed from {0} and sent to download client'.format(this.cellValue.get('data').indexer);
break;
case 'seriesFolderImported':
@ -26,7 +26,7 @@ define(
toolTip = 'Existing episode file added to library';
break;
case 'downloadFolderImported':
icon = 'icon-download-alt';
icon = 'icon-nd-imported';
toolTip = 'Episode downloaded successfully and picked up from download client';
break;
default :

Loading…
Cancel
Save