From 3a27d6cf70acbb2a26e3e8b85dc6f0c8e6cc8666 Mon Sep 17 00:00:00 2001 From: Morgan Blackthorne Date: Tue, 19 May 2026 15:22:15 -0700 Subject: [PATCH] Skip multi-location videos in list renames --script mode 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 --- plexadm/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plexadm/cli.py b/plexadm/cli.py index 9f7e48a..562449f 100644 --- a/plexadm/cli.py +++ b/plexadm/cli.py @@ -514,6 +514,9 @@ def list_renames(args: argparse.Namespace) -> int: if not any(filter_text in entry for entry in haystack): continue + if args.script and len(locations) > 1: + continue + filename = Path(locations[0]).name match_found = any(video.title in location for location in locations)