libtunepimp python write wma

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

libtunepimp python write wma

Mark Baas
Hi,
I read that tunepimp has the ability to write wma metadata. I have tried
to figure out to write this with picard, but i seem to get no luck. The
thing i basically do is (in Python):
tp = tunepimp.Tunepimp()
tp.addFile(path, 1)
id = self.tp.getFileIds()[0]
tr = self.tp.getTrack(id)
tp.lock()
md = tr.getLocalMetadata()
tp.unlock()
md.artist = "Nodoboy"
tp.lock()
tr.setLocalMetadata(md)
tp.unlock()
tp.ReleaseTrack(tr)
tp.writeTags([id])

The tag doesnt change. Only when i do tr.setStatus(tunepimp.eVerified)
before setLocalMetadata, it just wipes the track.
Maybe someone can provide me a example how to set this up right.
Greetings,
Mark Baas

_______________________________________________
Musicbrainz-experts mailing list
[hidden email]
http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-experts
Loading...