Registered Member
|
Hi everybody, I've started writing a script that looks for the tracks info on discogs.
I was currently able to retrieve informations and to display them and I was wondering if there's a simple way to edit tag info with Amarok's methods or if it's necessary to use an external app to do the tagging work? |
Registered Member
|
So here's what I've done so far :
for(i=0;(i Amarok.Playlist.trackAt(i).title=discogs.elementsByTagName( "track" ).at(i).firstChildElement( "title").text(); } So this way the track is well tagged inside Amarok however the mp3 file isn't modified and if I do sth like "touch file.mp3" then Amarok retrieves the original tags. The only way I found to have the tags written into the file is to modify them manually after and to save the changes. So is there a way to tell amarok to write the tags into the file inside my script ?? |
KDE Developer
|
The whole current scripting API is listed here:
http://amarok.kde.org/wiki/Development/ ... _HowTo_2.0 If you would like to request enhancements to the API, please report a wish on bugs.kde.org.
--
Mark Kretschmann - Amarok Developer |
Registered Member
|
This issue seems to have been fixed in SVN version. I hope the new version will be released quickly in order to publish my discogs script. Thanks.
|
Registered Member
|
Sorry to bother you with my questions but is there a variable that corresponds to the disc number ? I can't find any info on this in the doc.
|
Registered Member
|
I'm sorry it was discNumber with a capital N
|
KDE Developer
|
Sorry, I don't know this. All API details should be listed in our Scripting HowTo.
--
Mark Kretschmann - Amarok Developer |
KDE Developer
|
The issue wasn't fixed in SVN, as far as I could tell. Amarok wasn't writing changes to metadata to the file when edited from QtScript. However I just committed the fix.
Amarok Developer
|
Registered Member
|
Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, sandyvee, Sogou [Bot]