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:
parent
381e37ecf7
commit
f749bb9604
1 changed files with 0 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue