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.
This commit is contained in:
Broque Thomas 2026-04-18 15:06:54 -07:00
parent 381e37ecf7
commit f749bb9604

View file

@ -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,