PhotoPrism for more locations

This commit is contained in:
2022-12-25 13:54:17 -07:00
parent a510019c1d
commit 37c7b6760d
31 changed files with 395 additions and 509 deletions

View File

@ -44,7 +44,7 @@ public partial class PropertyCompare
return result;
}
// internal static string GetSelect(PropertyCompare item) => string.Concat(item.JsonFileNameWithoutExtension, item.ImageFileName, '\t', item.Property.CreationTime.Ticks, '\t', GetDateTime(item.Property).ToString("yyyy-MM-dd_HH-mm-ss"), '\t', item.Property.Id, '\t', item.Property.FileSize, '\t', item.Property.Width, '\t', item.Property.Height);
// internal static string GetSelect(PropertyCompare item) => string.Concat(item.JsonFileNameWithoutExtension, item.ImageFileName, '\t', item.Property.CreationTime.Ticks, '\t', GetDateTime(item.Property).ToString("yyyy-MM-dd_HH-mm-ss"), '\t', item.Property.FileId, '\t', item.Property.FileSize, '\t', item.Property.Width, '\t', item.Property.Height);
#nullable disable

View File

@ -176,7 +176,7 @@
// extension = Path.GetExtension(files[index]);
// string json = File.ReadAllText(jsonFile);
// Shared.Models.Property? property = JsonSerializer.Deserialize<Shared.Models.Property>(json);
// if (property?.Id is null)
// if (property?.FileId is null)
// throw new NullReferenceException(nameof(property));
// DateTime minimumDateTime = Shared.Models.Stateless.Methods.IProperty.GetMinimumDateTime(property);
// corrected = string.Concat(relativeDirectory, jsonFileNameWithoutExtension);
@ -195,11 +195,11 @@
// {
// n = i switch
// {
// 0 => property.Id.Value,
// 1 => property.Id.Value,
// 2 => property.Id.Value,
// 3 => property.Id.Value,
// 4 => property.Id.Value,
// 0 => property.FileId.Value,
// 1 => property.FileId.Value,
// 2 => property.FileId.Value,
// 3 => property.FileId.Value,
// 4 => property.FileId.Value,
// 5 => Shared.Models.Stateless.Methods.IProperty.GetDateTime(property).Ticks,
// 6 => property.CreationTime.Ticks,
// 7 => property.FileSize,
@ -229,8 +229,8 @@
// results.Add(propertyCompare);
// if (duplicates is not null)
// {
// string value = $"{property.Id.Value}\t{property}";
// index = ids.IndexOf(property.Id.Value);
// string value = $"{property.FileId.Value}\t{property}";
// index = ids.IndexOf(property.FileId.Value);
// if (index > -1)
// {
// lock (@lock)
@ -241,7 +241,7 @@
// }
// lock (@lock)
// {
// ids.Add(property.Id.Value);
// ids.Add(property.FileId.Value);
// collection.Add(propertyCompare);
// }
// }