You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove Cover Art That Only MediaInfo Reports, and Re-Check the FfProbe Path #1077
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
Process a file where MediaInfo reports cover art and MkvMerge and FfProbe do not.
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.
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().
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.
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.
Activity
ptr727 commentedon Oct 29, 2026
Precision on the FfProbe path:
RemoveCoverArtFfProbe()does re-checkFfProbeProps.HasCovertArt()after removing attachments, and only callsRemoveTags(ref modified, true)when cover art survives. The missing check is the one afterRemoveTags().ptr727 commentedon Oct 31, 2026
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 existingRemovedCoverArtflag so it does not repeat every run.ptr727 commentedon Oct 31, 2026
Claim (backlog burndown round 4, fixed together with #1074, #1077 and #1116): branch
feature/1074-1077-1116-cleanup-steps, filesPlexCleaner/ProcessFile.cs, newPlexCleanerTests/CleanupStepRepeatTests.cs, andARCHITECTURE.mdonly for a diagram edit the CI diagram test requires.HISTORY.mdand the Suspect Branches prose inARCHITECTURE.mdare deferred to one final docs pull request.