mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 10:11:10 +00:00
Adds the opt-in directory fast skip scan setting and renames the library scan settings for consistency
This commit is contained in:
1 parent
cce145e522
commit
9c2e5452da
38 files changed
+1360
-146
No files matched your search
+10
-6
@@ -55,6 +55,7 @@ public class DomainLibraryFixture
|
||||
_faker.Random.Bool(),
|
||||
_faker.Random.Bool(),
|
||||
_faker.Random.Bool(),
|
||||
_faker.Random.Bool(),
|
||||
[ScanId.CreateUnique(), ScanId.CreateUnique()]
|
||||
);
|
||||
|
||||
@@ -70,8 +71,9 @@ public class DomainLibraryFixture
|
||||
string? coverImage = null,
|
||||
bool isEnabled = true,
|
||||
bool isLocked = false,
|
||||
bool downloadMedatadaFromWeb = true,
|
||||
bool saveMetadataInMediaDirectories = false,
|
||||
bool downloadMetadataFromWeb = true,
|
||||
bool shouldSaveMetadataInMediaDirectories = false,
|
||||
bool shouldSkipUnchangedDirectoriesDuringScan = false,
|
||||
IEnumerable<Guid>? scanIds = null)
|
||||
{
|
||||
ErrorOr<Library> library = id is null ?
|
||||
@@ -83,8 +85,9 @@ public class DomainLibraryFixture
|
||||
coverImage,
|
||||
isEnabled,
|
||||
isLocked,
|
||||
downloadMedatadaFromWeb,
|
||||
saveMetadataInMediaDirectories,
|
||||
downloadMetadataFromWeb,
|
||||
shouldSaveMetadataInMediaDirectories,
|
||||
shouldSkipUnchangedDirectoriesDuringScan,
|
||||
scanIds?.Select(scanId => ScanId.Create(scanId)).ToList() ?? [ScanId.CreateUnique(), ScanId.CreateUnique()]
|
||||
) :
|
||||
Library.Create(
|
||||
@@ -96,8 +99,9 @@ public class DomainLibraryFixture
|
||||
coverImage,
|
||||
isEnabled,
|
||||
isLocked,
|
||||
downloadMedatadaFromWeb,
|
||||
saveMetadataInMediaDirectories,
|
||||
downloadMetadataFromWeb,
|
||||
shouldSaveMetadataInMediaDirectories,
|
||||
shouldSkipUnchangedDirectoriesDuringScan,
|
||||
scanIds?.Select(scanId => ScanId.Create(scanId)).ToList() ?? [ScanId.CreateUnique(), ScanId.CreateUnique()]
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user