mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
Fixes for code review
This commit is contained in:
@@ -11,18 +11,7 @@ namespace NzbDrone.Core.IndexerSearch.Definitions
|
|||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
var sb = new StringBuilder();
|
return string.Format("[{0} : {1}]", SceneTitle, String.Join(",", EpisodeQueryTitles));
|
||||||
bool delimiter = false;
|
|
||||||
foreach (var title in EpisodeQueryTitles)
|
|
||||||
{
|
|
||||||
if (delimiter)
|
|
||||||
{
|
|
||||||
sb.Append(',');
|
|
||||||
}
|
|
||||||
sb.Append(title);
|
|
||||||
delimiter = true;
|
|
||||||
}
|
|
||||||
return string.Format("[{0} : {1}]", SceneTitle, sb.ToString());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,12 @@ namespace NzbDrone.Core.Parser.Model
|
|||||||
public bool IsPossibleSpecialEpisode()
|
public bool IsPossibleSpecialEpisode()
|
||||||
{
|
{
|
||||||
// if we dont have eny episode numbers we are likely a special episode and need to do a search by episode title
|
// if we dont have eny episode numbers we are likely a special episode and need to do a search by episode title
|
||||||
return string.IsNullOrEmpty(AirDate) && (EpisodeNumbers.Length == 0 || SeasonNumber == 0 || String.IsNullOrWhiteSpace(SeriesTitle));
|
return string.IsNullOrEmpty(AirDate) &&
|
||||||
|
(
|
||||||
|
EpisodeNumbers.Length == 0 ||
|
||||||
|
SeasonNumber == 0 ||
|
||||||
|
String.IsNullOrWhiteSpace(SeriesTitle)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
|
|||||||
Reference in New Issue
Block a user