Started working on the parser step - still a bit rough in my head.
This commit is contained in:
parent
4372d09ee4
commit
2e53987dca
7 changed files with 190 additions and 30 deletions
|
|
@ -623,6 +623,12 @@ public class LibraryController : BaseApiController
|
|||
library.ManageReadingLists = dto.ManageReadingLists;
|
||||
library.AllowScrobbling = dto.AllowScrobbling;
|
||||
library.AllowMetadataMatching = dto.AllowMetadataMatching;
|
||||
|
||||
if (!dto.AllowFilenameParsing && !dto.AllowMetadataParsing)
|
||||
{
|
||||
throw new InvalidOperationException("At least one of UseFilenameParsing or UseInternalMetadataParsing must be true.");
|
||||
}
|
||||
|
||||
library.AllowFilenameParsing = dto.AllowFilenameParsing;
|
||||
library.AllowMetadataParsing = dto.AllowMetadataParsing;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue