Skip to content

Skip non-ASCII titles in list renames#17

Merged
jasmeralia merged 2 commits into
masterfrom
fix/list-renames-skip-non-ascii
May 19, 2026
Merged

Skip non-ASCII titles in list renames#17
jasmeralia merged 2 commits into
masterfrom
fix/list-renames-skip-non-ascii

Conversation

@jasmeralia

Copy link
Copy Markdown
Owner

Summary

  • Titles with non-ASCII characters (e.g. Ménage á Trois) get mangled to ? substitutions on disk, so the title-in-location match fails and they incorrectly appear as rename candidates
  • The existing '?' in video.title guard only catches literal ? in the Plex title, not accented/unicode characters in the title that cause ? in the filename
  • Fix: add not video.title.isascii() to the exclusion block — applies in both output and script mode

Triggered by /library/metadata/159156 (Clemence Audiard, Candie Luciani - Ménage á Trois).

Test plan

  • plexadm list renames "Clemence" no longer shows the Ménage á Trois entry
  • make lint passes clean

🤖 Generated with Claude Code

Morgan Blackthorne and others added 2 commits May 19, 2026 15:22
Previously, --script mode would silently emit a mv command for
locations[0] only when a video had multiple file locations, ignoring
the rest. Since the right action for multi-location entries is
ambiguous, skip them entirely in script mode so the generated
commands are always safe to run as-is. Output mode already shows
a WARNING for these entries.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Titles containing non-ASCII characters (e.g. accented letters) cannot
be represented safely in filenames on most filesystems; they typically
get mangled to '?' on disk. The existing '?' check only catches literal
question marks in the Plex title, not this case. Add isascii() to the
exclusion guard so titles like 'Ménage á Trois' are skipped rather
than generating a mv command that would produce a broken filename.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jasmeralia jasmeralia merged commit 8477b09 into master May 19, 2026
1 check passed
@jasmeralia jasmeralia deleted the fix/list-renames-skip-non-ascii branch May 19, 2026 22:27
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