Fixed: MediaManagement Settings (fresh db required)

This commit is contained in:
ta264
2020-05-14 21:53:50 +01:00
parent 8547af9fae
commit 6c7e4ca210
4 changed files with 5 additions and 5 deletions

View File

@@ -91,7 +91,7 @@ namespace NzbDrone.Integration.Test.ApiTests
var config = NamingConfig.GetSingle();
config.RenameBooks = true;
config.ArtistFolderFormat = "This and That";
config.AuthorFolderFormat = "This and That";
var errors = NamingConfig.InvalidPut(config);
errors.Should().NotBeNull();

View File

@@ -33,7 +33,7 @@ namespace Readarr.Api.V1.Config
Get("/examples", x => GetExamples(this.Bind<NamingConfigResource>()));
SharedValidator.RuleFor(c => c.StandardBookFormat).ValidBookFormat();
SharedValidator.RuleFor(c => c.ArtistFolderFormat).ValidAuthorFolderFormat();
SharedValidator.RuleFor(c => c.AuthorFolderFormat).ValidAuthorFolderFormat();
}
private void UpdateNamingConfig(NamingConfigResource resource)

View File

@@ -7,7 +7,7 @@ namespace Readarr.Api.V1.Config
public bool RenameBooks { get; set; }
public bool ReplaceIllegalCharacters { get; set; }
public string StandardBookFormat { get; set; }
public string ArtistFolderFormat { get; set; }
public string AuthorFolderFormat { get; set; }
public bool IncludeArtistName { get; set; }
public bool IncludeAlbumTitle { get; set; }
public bool IncludeQuality { get; set; }

View File

@@ -19,7 +19,7 @@ namespace Readarr.Api.V1.Config
RenameBooks = model.RenameBooks,
ReplaceIllegalCharacters = model.ReplaceIllegalCharacters,
StandardBookFormat = model.StandardBookFormat,
ArtistFolderFormat = model.AuthorFolderFormat
AuthorFolderFormat = model.AuthorFolderFormat
};
}
@@ -42,7 +42,7 @@ namespace Readarr.Api.V1.Config
RenameBooks = resource.RenameBooks,
ReplaceIllegalCharacters = resource.ReplaceIllegalCharacters,
StandardBookFormat = resource.StandardBookFormat,
AuthorFolderFormat = resource.ArtistFolderFormat,
AuthorFolderFormat = resource.AuthorFolderFormat,
};
}
}