You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
721 B
20 lines
721 B
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using NzbDrone.Common.Exceptions;
|
|
|
|
namespace NzbDrone.Core.DataAugmentation.Scene
|
|
{
|
|
public class InvalidSceneMappingException : NzbDroneException
|
|
{
|
|
public InvalidSceneMappingException(IEnumerable<SceneMapping> mappings, string releaseTitle)
|
|
: base(FormatMessage(mappings, releaseTitle))
|
|
{
|
|
}
|
|
|
|
private static string FormatMessage(IEnumerable<SceneMapping> mappings, string releaseTitle)
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|