mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 13:01:28 +02:00
do a check to see if daily episode has airdate before attempting a search.
This commit is contained in:
@@ -54,6 +54,11 @@ namespace NzbDrone.Core.IndexerSearch
|
|||||||
|
|
||||||
if (series.SeriesType == SeriesTypes.Daily)
|
if (series.SeriesType == SeriesTypes.Daily)
|
||||||
{
|
{
|
||||||
|
if (string.IsNullOrWhiteSpace(episode.AirDate))
|
||||||
|
{
|
||||||
|
throw new InvalidOperationException("Daily episode is missing AirDate. Try to refresh series info.");
|
||||||
|
}
|
||||||
|
|
||||||
return SearchDaily(episode.SeriesId, DateTime.ParseExact(episode.AirDate, Episode.AIR_DATE_FORMAT, CultureInfo.InvariantCulture));
|
return SearchDaily(episode.SeriesId, DateTime.ParseExact(episode.AirDate, Episode.AIR_DATE_FORMAT, CultureInfo.InvariantCulture));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -72,7 +72,7 @@ namespace NzbDrone.Core.Indexers
|
|||||||
return dateVal;
|
return dateVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CheckForError()
|
private void CheckForError()
|
||||||
{
|
{
|
||||||
if (MoveToContent() == XmlNodeType.Element)
|
if (MoveToContent() == XmlNodeType.Element)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user