Skip to content

PlexFixer 0.1.17

Choose a tag to compare

@focher focher released this 13 Nov 06:41
· 13 commits to main since this release

Settings could be lost when two changes overlapped

Every settings change rewrote settings.json through one shared temporary
file. Two changes close together — flipping the remote toggle while a keystroke
in the host field was still saving — raced each other: the first rename moved
the temporary file away, the second failed, and that change was silently never
saved. In the worst interleaving a half-written file was renamed into place,
and because a file that would not parse was treated the same as no file at all,
the next save started from an empty object and every preference was gone.

Writes now queue behind one another and each uses its own temporary file. A
file that cannot be parsed is moved aside as settings.json.corrupt-<time>
instead of being overwritten, so the app still starts but the only record of
what your preferences were survives.

Related: PlexFixer no longer re-probes the environment on every keystroke. Each
probe is an SSH round trip to the remote host plus local test encodes, and a
half-typed hostname can only fail slowly. Typed fields now wait until the
typing stops; the remote toggle still takes effect immediately.

Bulk actions

One Bulk menu — Rescan, Repair, Force lossless remux, Force transcode —
replaces the buttons that used to appear with a selection and shift the
toolbar. The count and Clear selection are always there, greyed out when
nothing is selected, and Refresh all stays put.

A batch repair that would re-encode anything asks first, and says what each
file actually gets: Force transcode only re-encodes the files that need it,
and the rest are remuxed losslessly.

Backups that clean up after themselves

Delete backups after — 1 day, 7 days (the new default), 30 days or Never.
Each backup records when it was made, because a moved file keeps its old
dates. Expiry runs at launch, hourly, and after each repair, and waits for a
drive that is not mounted rather than giving up on it.

Settings → Remove all backups finds every backup folder under the library,
including ones from earlier versions, and confirms with the count and total
size before removing anything.

Header-only edits now take an instant APFS clone first where the volume is
APFS, so even the cheapest repair has something to go back to.

Leftover temporary files

A scan no longer lists a repair's in-progress .plexfixer-… file as a library
file. One that no running repair owns and that has not changed in 10 minutes
is removed, and the Library tab says it did.

H.264 levels: fewer needless re-encodes

ffprobe leaves the reference-frame count empty for most files, so the level
check assumed the worst case and sent streams labelled above 4.1 off for a
re-encode even when they used few enough reference frames to be relabelled
losslessly. PlexFixer now parses the SPS out of the stream's extradata and
reads the real max_num_ref_frames, so those files get the lossless relabel
they were entitled to.

When a stream genuinely cannot be relabelled, the finding now says which limit
it breaks — and notes when the MP4 header level (what Subler shows) disagrees
with the level inside the stream itself.

Smaller things

  • npm run dev now runs under a bundle named PlexFixer, so the macOS app menu,
    the Dock and Cmd-Tab stop saying "Electron".
  • The README documents the macOS signing situation plainly: these builds are
    signed but not notarized, and will not be. See below.

Opening it on macOS

PlexFixer is signed with a Developer ID certificate but is not notarized, so
macOS will refuse to open it on first launch. The DMG ships Allow PlexFixer
to open.command
next to the app: drag PlexFixer to Applications, then run
that script — it clears the download flag, checks the signature is intact, and
opens the app. By hand, the equivalent is:

xattr -dr com.apple.quarantine /Applications/PlexFixer.app

or System Settings → Privacy & Security → Open Anyway. macOS quarantines
the .command too, so if a Mac blocks the script as well, use one of those.