JorenSix/Olaf

Delete fails with undefined local variable or method audio_identifer

Closed this issue · 1 comments

For a freshly added file, I cannot delete it from the database.

$ olaf delete "test.mp3"
Traceback (most recent call last):
	6: from /usr/local/bin/olaf:340:in `<main>'
	5: from /usr/local/bin/olaf:340:in `each_with_index'
	4: from /usr/local/bin/olaf:340:in `each'
	3: from /usr/local/bin/olaf:341:in `block in <main>'
	2: from /usr/local/bin/olaf:299:in `delete'
	1: from /usr/local/bin/olaf:138:in `with_converted_audio'
/usr/local/bin/olaf:300:in `block in delete': undefined local variable or method `audio_identifer' for main:Object (NameError)
Did you mean?  audio_filename
ERROR: 1

Unfortunately, I do not speak ruby, but I also don't see any sign of the undefined variable, so I daresay the error is correct.

Hi this has been fixed.

Thanks for the bug report!