mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
More EpisodeSearchJob fixes/tests
This commit is contained in:
parent
5a812801b7
commit
ac2d33443b
4 changed files with 205 additions and 29 deletions
|
@ -25,6 +25,14 @@ namespace NzbDrone.Core.Repository
|
|||
|
||||
public Boolean Ignored { get; set; }
|
||||
|
||||
[SubSonicIgnore]
|
||||
public Boolean IsDailyEpisode
|
||||
{
|
||||
get
|
||||
{
|
||||
return EpisodeNumber == 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the grab date.
|
||||
|
@ -74,7 +82,7 @@ namespace NzbDrone.Core.Repository
|
|||
{
|
||||
var seriesTitle = Series == null ? "[NULL]" : Series.Title;
|
||||
|
||||
if (EpisodeNumber == 0)
|
||||
if (IsDailyEpisode)
|
||||
return string.Format("{0} - {1}", seriesTitle, AirDate.Date);
|
||||
|
||||
return string.Format("{0} - S{1:00}E{2}", seriesTitle, SeasonNumber, EpisodeNumber);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue