parent
d8633b9688
commit
c7824bb593
|
@ -171,7 +171,7 @@ namespace NzbDrone.Common.Extensions
|
||||||
{
|
{
|
||||||
if (text.IsNullOrWhiteSpace())
|
if (text.IsNullOrWhiteSpace())
|
||||||
{
|
{
|
||||||
throw new ArgumentNullException("text");
|
throw new ArgumentNullException(nameof(text));
|
||||||
}
|
}
|
||||||
|
|
||||||
return text.IndexOfAny(Path.GetInvalidPathChars()) >= 0;
|
return text.IndexOfAny(Path.GetInvalidPathChars()) >= 0;
|
||||||
|
|
|
@ -307,9 +307,17 @@ namespace NzbDrone.Core.Indexers
|
||||||
|
|
||||||
protected virtual bool IsValidRelease(ReleaseInfo release)
|
protected virtual bool IsValidRelease(ReleaseInfo release)
|
||||||
{
|
{
|
||||||
|
if (release.Title.IsNullOrWhiteSpace())
|
||||||
|
{
|
||||||
|
_logger.Trace("Invalid Release: '{0}' from indexer: {1}. No title provided.", release.InfoUrl, Definition.Name);
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (release.DownloadUrl.IsNullOrWhiteSpace())
|
if (release.DownloadUrl.IsNullOrWhiteSpace())
|
||||||
{
|
{
|
||||||
_logger.Trace("Invalid Release: '{0}' from indexer: {1}. No Download URL provided.", release.Title, release.Indexer);
|
_logger.Trace("Invalid Release: '{0}' from indexer: {1}. No Download URL provided.", release.Title, Definition.Name);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,12 @@ namespace NzbDrone.Core.Parser
|
||||||
|
|
||||||
public static QualityModel ParseQuality(string name)
|
public static QualityModel ParseQuality(string name)
|
||||||
{
|
{
|
||||||
Logger.Debug("Trying to parse quality for {0}", name);
|
Logger.Debug("Trying to parse quality for '{0}'", name);
|
||||||
|
|
||||||
|
if (name.IsNullOrWhiteSpace())
|
||||||
|
{
|
||||||
|
return new QualityModel { Quality = Quality.Unknown };
|
||||||
|
}
|
||||||
|
|
||||||
name = name.Trim();
|
name = name.Trim();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue