Skip to content

Remove Cover Art That Only MediaInfo Reports, and Re-Check the FfProbe Path #1077

Closed

Description

@ptr727

Behavior

ProcessFile.RemoveCoverArt() triggers when MkvMerge, FfProbe or MediaInfo reports cover art, and then requires ReMux. It has removal branches for MkvMerge and FfProbe only. When only MediaInfo reports cover art, nothing is removed and the step returns true. Only a Debug.Assert notices.

RemoveCoverArtFfProbe() removes attachments, then tags, and returns true without checking whether the cover art is gone.

Reproduction shape

  1. Process a file where MediaInfo reports cover art and MkvMerge and FfProbe do not.
  2. The step passes with the cover art still present, and a release build logs nothing.

Expected

Each detection source has a removal path, and the step re-checks after removal and fails when cover art remains.

Found while drawing the process command diagrams, ARCHITECTURE.md "Process Command Logic", suspect branch S10.

Activity

  1. added
    bug
    pre-existing
    on Oct 29, 2026
  2. ptr727 commented on Oct 29, 2026

    @ptr727
    OwnerAuthor

    Precision on the FfProbe path: RemoveCoverArtFfProbe() does re-check FfProbeProps.HasCovertArt() after removing attachments, and only calls RemoveTags(ref modified, true) when cover art survives. The missing check is the one after RemoveTags().

  3. ptr727 commented on Oct 31, 2026

    @ptr727
    OwnerAuthor

    Decision from the maintainer (2026-10-30): when only MediaInfo reports cover art, first remove attachments in place (RemoveAttachments(), no remux). If MediaInfo still reports it, remux with MkvMerge. Re-check, and if it remains, warn once and use the existing RemovedCoverArt flag so it does not repeat every run.

  4. ptr727 commented on Oct 31, 2026

    @ptr727
    OwnerAuthor

    Claim (backlog burndown round 4, fixed together with #1074, #1077 and #1116): branch feature/1074-1077-1116-cleanup-steps, files PlexCleaner/ProcessFile.cs, new PlexCleanerTests/CleanupStepRepeatTests.cs, and ARCHITECTURE.md only for a diagram edit the CI diagram test requires. HISTORY.md and the Suspect Branches prose in ARCHITECTURE.md are deferred to one final docs pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpre-existing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions