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

Removed unnecessary IsDailyFlag from episode.cs

This commit is contained in:
kay.one 2011-06-17 23:39:14 -07:00
parent a174900ce0
commit a12e148d54
2 changed files with 5 additions and 19 deletions

View File

@ -70,17 +70,9 @@ public void Start(ProgressNotification notification, int targetId)
{
notification.CurrentMessage = String.Format("Searching for {0} in {1}", episode, indexer.Name);
IList<EpisodeParseResult> indexerResults = new List<EpisodeParseResult>();
if (episode.IsDailyEpisode)
{
//TODO:Add support for daily episodes
}
else
{
indexerResults = indexer.FetchEpisode(title, episode.SeasonNumber, episode.EpisodeNumber);
}
//TODO:Add support for daily episodes, maybe search using both date and season/episode?
var indexerResults = indexer.FetchEpisode(title, episode.SeasonNumber, episode.EpisodeNumber);
reports.AddRange(indexerResults);
}
catch (Exception e)

View File

@ -24,12 +24,6 @@ public class Episode
public Boolean Ignored { get; set; }
[Ignore]
public Boolean IsDailyEpisode
{
get { return EpisodeNumber == 0; }
}
/// <summary>
/// Gets or sets the grab date.
/// </summary>
@ -77,8 +71,8 @@ public override string ToString()
{
string seriesTitle = Series == null ? "[NULL]" : Series.Title;
if (IsDailyEpisode)
return string.Format("{0} - {1}", seriesTitle, AirDate.Date);
//if (IsDailyEpisode)
// return string.Format("{0} - {1}", seriesTitle, AirDate.Date);
return string.Format("{0} - S{1:00}E{2:00}", seriesTitle, SeasonNumber, EpisodeNumber);
}