Skip to content

fix: history, mediainfo, and indexer bug fixes - #53

Merged
Starosdev merged 7 commits into
masterfrom
develop
Mar 18, 2026
Merged

Starosdev merged 7 commits into
masterfrom
develop

Conversation

@Starosdev

Copy link
Copy Markdown
Owner

Summary

Linked Issues

Closes #25
Closes #26
Closes #28

Test plan

  • Unit tests pass for all changes
  • CI checks passed on develop

…25)

The SpecialCharacter regex in SearchCriteriaBase only stripped single
quote variants and periods. Double quote characters (ASCII and Unicode
curly variants) were not handled, causing them to be converted to +
delimiters by the NonWord regex instead of being cleanly removed. This
produced malformed search queries for titles containing quotes, leading
to zero results from indexers.

Add ASCII double quote, left/right double quotation marks (U+201C,
U+201D) to the SpecialCharacter pattern and add corresponding test
cases.
…tion (#25)

Cover low-9 quotes, single angle quotes, and guillemets so non-English
movie titles with these characters produce correct indexer search queries.
When Dolby Vision metadata exists on a secondary video stream rather
than the primary one, it was not being detected. This updates both the
DoviConfigurationRecord extraction and the HDR format side data
aggregation to scan all video streams for DV metadata, falling back
to secondary streams when the primary stream has none.
When imports fail repeatedly (e.g., destination already exists), the
upgrade path was deleting the existing movie file record from the
database and creating a "file deleted" history event on every retry
cycle, even when the file was already missing from disk.

Two changes prevent this:

1. UpgradeMediaFileService now uses MissingFromDisk as the delete
   reason when the existing file is not on disk, and does not add
   it to OldFiles since no actual deletion occurred.

2. HistoryService now skips creating history events for MissingFromDisk
   deletions, matching the existing behavior for NoLinkedEpisodes.
@Starosdev
Starosdev merged commit eed83ea into master Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant