New: Setting to add Collection to NFO files

This commit is contained in:
Robin Dadswell 2022-08-26 20:44:03 +01:00
parent 573405bae7
commit 5558e10711
2 changed files with 5 additions and 1 deletions

View File

@ -261,7 +261,7 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc
details.Add(new XElement("country"));
if (movie.MovieMetadata.Value.CollectionTitle != null)
if (Settings.AddCollectionName && movie.MovieMetadata.Value.CollectionTitle != null)
{
var setElement = new XElement("set");

View File

@ -24,6 +24,7 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc
MovieMetadataLanguage = (int)Language.English;
MovieImages = true;
UseMovieNfo = false;
AddCollectionName = true;
}
[FieldDefinition(0, Label = "Movie Metadata", Type = FieldType.Checkbox)]
@ -41,6 +42,9 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc
[FieldDefinition(4, Label = "Use Movie.nfo", Type = FieldType.Checkbox, HelpText = "Radarr will write metadata to movie.nfo instead of the default <movie-filename>.nfo")]
public bool UseMovieNfo { get; set; }
[FieldDefinition(5, Label = "Collection Name", Type = FieldType.Checkbox, HelpText = "Radarr will write the collection name to the .nfo file", Advanced = true)]
public bool AddCollectionName { get; set; }
public bool IsValid => true;
public NzbDroneValidationResult Validate()