1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

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 @@ protected override ReportInfo PostProcessor(XElement item, ReportInfo currentRes
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);

View File

@ -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)
{
}
}

View File

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

View File

@ -73,8 +73,8 @@ public virtual RootFolder Add(RootFolder rootFolder)
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))

View File

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

View File

@ -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 :