New: Setting to add Collection to NFO files

pull/7575/head
Robin Dadswell 2 years ago
parent 573405bae7
commit 5558e10711

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

@ -24,6 +24,7 @@ namespace NzbDrone.Core.Extras.Metadata.Consumers.Xbmc
MovieMetadataLanguage = (int)Language.English; MovieMetadataLanguage = (int)Language.English;
MovieImages = true; MovieImages = true;
UseMovieNfo = false; UseMovieNfo = false;
AddCollectionName = true;
} }
[FieldDefinition(0, Label = "Movie Metadata", Type = FieldType.Checkbox)] [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")] [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; } 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 bool IsValid => true;
public NzbDroneValidationResult Validate() public NzbDroneValidationResult Validate()

Loading…
Cancel
Save