From f749bb9604067733102024d08872eab1463f4aac Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Sat, 18 Apr 2026 15:06:54 -0700 Subject: [PATCH] Fix AcoustID mismatch fix failing with 'uuid' UnboundLocalError The redownload branch had `import json, uuid` locally inside the function, which caused Python to treat `uuid` as a local variable for the entire function scope. When the retag branch ran instead, `uuid` was unbound. Both modules are already imported at the top of the file. --- core/repair_worker.py | 1 - 1 file changed, 1 deletion(-) diff --git a/core/repair_worker.py b/core/repair_worker.py index 72caa020..4b7a0402 100644 --- a/core/repair_worker.py +++ b/core/repair_worker.py @@ -1556,7 +1556,6 @@ class RepairWorker: album_title = details.get('album_title', '') if expected_title and expected_artist: try: - import json, uuid track_data = { 'id': f'acoustid_fix_{uuid.uuid4().hex[:8]}', 'name': expected_title,