You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried another technique which seemed to be suggested in #392 where I deleted all the tags, and then try to add new ones using only mutagen, but I get an error
>>> mutagen.wave.delete(w)
>>> WAVE(w)
{}
>>> WAVE(w).add_tags()
>>> WAVE(w).tags.add(TKEY(encoding=3, text=['Abm']))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'add'
Any assistance would be much appreciated!
The text was updated successfully, but these errors were encountered:
The issue here was that there was always a new WAVE object created in the code. So there is a call to WAVE(w).add_tags(), that creates a WAVE object and adds tags to it. But as the object is not assigned it gets discarded again. Then the next call WAVE(w).tags.add(...) creates a new object and tries to access it tags, but if the loaded file does not have tags this of course fails again.
I have a WAV file in which I already added a few dummy tags using foobar2000
Trying to add tags using mutagen now I'm having difficulty
I tried another technique which seemed to be suggested in #392 where I deleted all the tags, and then try to add new ones using only mutagen, but I get an error
Any assistance would be much appreciated!
The text was updated successfully, but these errors were encountered: