mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-22 09:29:59 +00:00
Fixed: MediaManagement Settings (fresh db required)
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user