mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Include releaseTitle in InvalidSceneMappingException.
This commit is contained in:
parent
8e63f7d436
commit
c7d30ae703
@ -8,15 +8,15 @@ namespace NzbDrone.Core.DataAugmentation.Scene
|
|||||||
{
|
{
|
||||||
public class InvalidSceneMappingException : NzbDroneException
|
public class InvalidSceneMappingException : NzbDroneException
|
||||||
{
|
{
|
||||||
public InvalidSceneMappingException(IEnumerable<SceneMapping> mappings)
|
public InvalidSceneMappingException(IEnumerable<SceneMapping> mappings, string releaseTitle)
|
||||||
: base(FormatMessage(mappings))
|
: base(FormatMessage(mappings, releaseTitle))
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string FormatMessage(IEnumerable<SceneMapping> mappings)
|
private static string FormatMessage(IEnumerable<SceneMapping> mappings, string releaseTitle)
|
||||||
{
|
{
|
||||||
return string.Format("Scene Mappings contains a conflict for tvdbids {0}. Please notify Sonarr developers.", string.Join(",", mappings.Select(v => v.TvdbId.ToString())));
|
return string.Format("Scene Mappings contains a conflict for tvdbids {0}. Please notify Sonarr developers. ({1})", string.Join(",", mappings.Select(v => v.TvdbId.ToString())), releaseTitle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -109,7 +109,7 @@ public SceneMapping FindSceneMapping(string seriesTitle, string releaseTitle)
|
|||||||
return distinctMappings.FirstOrDefault();
|
return distinctMappings.FirstOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new InvalidSceneMappingException(mappings);
|
throw new InvalidSceneMappingException(mappings, releaseTitle);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int? GetSceneSeasonNumber(string seriesTitle, string releaseTitle)
|
public int? GetSceneSeasonNumber(string seriesTitle, string releaseTitle)
|
||||||
|
Loading…
Reference in New Issue
Block a user