more nd icons and some spelling fixes

This commit is contained in:
Mark McDowall 2013-08-13 22:25:53 -07:00
parent 3ef9b40754
commit b1e5646d7d
6 changed files with 18 additions and 9 deletions

View File

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

View File

@ -2,12 +2,13 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using NzbDrone.Common.Exceptions;
namespace NzbDrone.Core.Indexers.Newznab 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)
{ {
} }
} }

View File

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

View File

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

View File

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

View File

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