|
|
|
@ -8,15 +8,15 @@ namespace NzbDrone.Core.DataAugmentation.Scene
|
|
|
|
|
{
|
|
|
|
|
public class InvalidSceneMappingException : NzbDroneException
|
|
|
|
|
{
|
|
|
|
|
public InvalidSceneMappingException(IEnumerable<SceneMapping> mappings)
|
|
|
|
|
: base(FormatMessage(mappings))
|
|
|
|
|
public InvalidSceneMappingException(IEnumerable<SceneMapping> mappings, string releaseTitle)
|
|
|
|
|
: 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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|