Started working on the parser step - still a bit rough in my head.

This commit is contained in:
Joseph Milazzo 2025-05-09 06:35:08 -05:00
parent 4372d09ee4
commit 2e53987dca
7 changed files with 190 additions and 30 deletions

View file

@ -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;