Tags in QML
Hi,
Is there a list of the info I can read from the files and tags from QML? I can do a dir(app) to get all properties and functions but no documentation.
What I am looking for now is the track duration, either formatted or in number of seconds.
I get the app.selectionInfo.detailInfo which has the track duration at the end. I can extract that from the string, but what if that format ever changes? I assume that string has been compiled from different properties, that I hope I can getmyself.
I also got this info from a previous post:
oldComment = app.getFrame(2, 'comment')
app.importFromTags(2, '%{seconds}', '%{comment}(.+)')
seconds = app.getFrame(2, 'comment')
app.setFrame(2, 'comment', oldComment)
So with importFromTags it's possible to get %{seconds}. Isn't there a getTag to get the seconds or duration without setting it in a frame and then reset the frame?
Cheers, Jerry
Imported from SourceForge, author: jerry1970