Auto-Merge

Auto-Merge automatically finds and merges metadata from multiple providers to keep your library entries complete and duplicate-free. When you add a book, Tsumihon searches other connected providers for matching entries and intelligently combines the best metadata into a single, enriched record.

Overview

Books often appear on multiple metadata providers, each with slightly different information. One source might have better tags, another might have a higher-resolution cover, and a third might include more complete artist credits. Auto-Merge bridges these gaps by cross-referencing providers and combining their data according to your preferences.

The process is designed to be safe and conservative by default. Tsumihon uses a similarity scoring algorithm to find likely matches, then applies your auto-accept rules to merge non-conflicting data automatically. When genuine conflicts arise, you are prompted to resolve them.

Similarity Detection Algorithm

Auto-Merge uses a weighted scoring system to determine how likely two entries from different providers are the same book. The similarity score is calculated from the following factors:

In addition, if both entries share a source ID (such as the same gallery ID on a provider), a +20% bonus is applied to the score. This makes source ID matches very reliable.

A candidate must meet or exceed the confidence threshold (default: 0.7, or 70%) to be considered a valid match.

Auto-Accept Settings

When a match is found, Auto-Merge can automatically accept certain types of metadata without prompting you. This keeps the process fast for non-controversial data. The following fields can be configured for auto-accept:

Enabled by default

Opt-in (disabled by default)

Tip: You can enable cover auto-accept if you prefer a specific provider’s cover quality. The merge order is determined by the provider priority in your settings.

Language Tag Filtering

Auto-Merge includes language-aware tag filtering to prevent irrelevant language tags from cluttering your entries. When merging tags, the system checks if the incoming tags include language identifiers and filters them according to the languages you have configured in your preferences. This avoids situations where a single book accumulates language tags from every provider that lists it.

Conflict Resolution Strategies

When Auto-Merge encounters a field where both the existing entry and the new source have different values, it needs a strategy to resolve the conflict. Tsumihon supports the following strategies:

Setup

To configure Auto-Merge:

  1. Open Settings from the navigation bar.
  2. Tap Configure Auto-Merge.
  3. Toggle Enable Auto-Merge to turn the feature on.
  4. Set the Confidence Threshold — the minimum similarity score required for a match. The default is 0.7 (70%). Lower values find more matches but increase the risk of false positives.
  5. Set Max Candidates — the maximum number of potential matches to evaluate per book. The default is 5. Higher values are more thorough but slower.
  6. Configure which fields should be auto-accepted and which conflict resolution strategy to use for each field type.

How It Works When Adding a Book

When Auto-Merge is enabled and you add a new book to your library, the following happens automatically in the background:

  1. Background Search — Tsumihon searches all connected providers for entries matching the book you just added.
  2. Scoring — Each candidate is scored using the similarity detection algorithm. Candidates below the confidence threshold are discarded.
  3. Merge Dialog — If matches are found and some fields have conflicts that require user input (based on your conflict resolution settings), a merge dialog is presented.
  4. Preview — The dialog shows a side-by-side comparison of your existing entry and the candidate, highlighting differences and letting you choose which values to keep.
  5. Execute — Once you confirm (or if all fields can be auto-accepted), the merge is executed and your library entry is updated with the combined metadata.

If no conflicts require user input, the merge happens silently in the background and you will see a brief notification confirming that metadata was enriched.

Manual Merge

You can also trigger a merge manually from any book’s detail screen:

  1. Open the book you want to enrich.
  2. Tap the menu button (three dots) in the top-right corner.
  3. Select Search for Merge Candidates.
  4. Tsumihon will search all connected providers and present any matches found.
  5. Review the candidates, select one, and proceed through the merge dialog.
Tip: Manual merge is useful for books that were added before Auto-Merge was enabled, or for books where you want to re-check for updated metadata from providers.

Configuration Best Practices

Getting the most out of Auto-Merge is a matter of finding the right balance between automation and control. Here are some recommendations:

Troubleshooting

No merge candidates are found

False positives (wrong books being matched)

Wrong metadata being merged

Warning: Lowering the confidence threshold below 0.5 significantly increases the risk of false positive matches. If you do lower it this far, make sure “Ask User” is enabled for all important fields so you can verify each merge.