mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
more nd icons and some spelling fixes
This commit is contained in:
parent
3ef9b40754
commit
b1e5646d7d
@ -25,8 +25,7 @@ protected override ReportInfo PostProcessor(XElement item, ReportInfo currentRes
|
|||||||
|
|
||||||
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);
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,5 +19,10 @@ public bool IsRecentEpisode()
|
|||||||
{
|
{
|
||||||
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -73,8 +73,8 @@ public virtual RootFolder Add(RootFolder rootFolder)
|
|||||||
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))
|
||||||
|
@ -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 {
|
||||||
@ -105,4 +105,8 @@
|
|||||||
|
|
||||||
.icon-nd-not-aired:before {
|
.icon-nd-not-aired:before {
|
||||||
.icon(@time);
|
.icon(@time);
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-nd-imported:before {
|
||||||
|
.icon(@download-alt);
|
||||||
}
|
}
|
@ -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 :
|
||||||
|
Loading…
Reference in New Issue
Block a user