mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
rename display name maps to totals and duplicates seen
This commit is contained in:
parent
d640f5f4f2
commit
5c6e13cd01
1 changed files with 4 additions and 4 deletions
|
|
@ -350,8 +350,8 @@ class AssetMediaRepository {
|
|||
|
||||
updateProgress();
|
||||
|
||||
final displayNameCounts = countShareDisplayNames(assets, fileType);
|
||||
final displayNameOccurrences = <String, int>{};
|
||||
final displayNameTotals = countShareDisplayNames(assets, fileType);
|
||||
final duplicatesSeen = <String, int>{};
|
||||
|
||||
for (final asset in assets) {
|
||||
if (_isCancelled(cancelCompleter)) {
|
||||
|
|
@ -361,8 +361,8 @@ class AssetMediaRepository {
|
|||
|
||||
final effectiveFileType = asset.isVideo ? ShareAssetType.original : fileType;
|
||||
final displayName = _shareDisplayName(asset, fileType);
|
||||
final occurrence = displayNameCounts[displayName]! > 1
|
||||
? displayNameOccurrences.update(displayName, (count) => count + 1, ifAbsent: () => 1)
|
||||
final occurrence = displayNameTotals[displayName]! > 1
|
||||
? duplicatesSeen.update(displayName, (count) => count + 1, ifAbsent: () => 1)
|
||||
: 0;
|
||||
|
||||
final shareFile = switch (effectiveFileType) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue