mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-22 07:43:01 +00:00
parent
82c526e15c
commit
9a69222c9a
3 changed files with 13 additions and 3 deletions
|
@ -94,6 +94,11 @@ namespace NzbDrone.Core.DataAugmentation.Scene
|
|||
|
||||
public SceneMapping FindSceneMapping(string seriesTitle, string releaseTitle, int sceneSeasonNumber)
|
||||
{
|
||||
if (seriesTitle.IsNullOrWhiteSpace())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var mappings = FindMappings(seriesTitle, releaseTitle);
|
||||
|
||||
if (mappings == null)
|
||||
|
|
|
@ -836,6 +836,11 @@ namespace NzbDrone.Core.Parser
|
|||
|
||||
public static string CleanSeriesTitle(this string title)
|
||||
{
|
||||
if (title.IsNullOrWhiteSpace())
|
||||
{
|
||||
return title;
|
||||
}
|
||||
|
||||
// If Title only contains numbers return it as is.
|
||||
if (long.TryParse(title, out _))
|
||||
{
|
||||
|
|
|
@ -127,7 +127,7 @@ namespace Sonarr.Api.V3.Indexers
|
|||
|
||||
if (episodes.Empty())
|
||||
{
|
||||
throw new NzbDroneClientException(HttpStatusCode.NotFound, "Unable to parse episodes in the release");
|
||||
throw new NzbDroneClientException(HttpStatusCode.NotFound, "Unable to parse episodes in the release, will need to be manually provided");
|
||||
}
|
||||
|
||||
remoteEpisode.Series = series;
|
||||
|
@ -135,7 +135,7 @@ namespace Sonarr.Api.V3.Indexers
|
|||
}
|
||||
else
|
||||
{
|
||||
throw new NzbDroneClientException(HttpStatusCode.NotFound, "Unable to find matching series and episodes");
|
||||
throw new NzbDroneClientException(HttpStatusCode.NotFound, "Unable to find matching series and episodes, will need to be manually provided");
|
||||
}
|
||||
}
|
||||
else if (remoteEpisode.Episodes.Empty())
|
||||
|
@ -154,7 +154,7 @@ namespace Sonarr.Api.V3.Indexers
|
|||
|
||||
if (remoteEpisode.Episodes.Empty())
|
||||
{
|
||||
throw new NzbDroneClientException(HttpStatusCode.NotFound, "Unable to parse episodes in the release");
|
||||
throw new NzbDroneClientException(HttpStatusCode.NotFound, "Unable to parse episodes in the release, will need to be manually provided");
|
||||
}
|
||||
|
||||
await _downloadService.DownloadReport(remoteEpisode, release.DownloadClientId);
|
||||
|
|
Loading…
Reference in a new issue