This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Script API and tag "Comment"

Tags: tag, tags, comment, api, script, shortcut, function tag, tags, comment, api, script, shortcut, function tag, tags, comment, api, script, shortcut, function
(comma "," separated)
rominf
Registered Member
Posts
5
Karma
0
OS

Script API and tag "Comment"

Wed Jan 18, 2012 7:50 pm
Hello!
Is there way to write text into tag "Comment" using script API? I've searched and didn't find this function at this page: http://amarok.kde.org/wiki/Development/Script_API. Why do I want this? See my topic: viewtopic.php?f=115&t=98652.
I want to change tag "Comment" for current track by pressing shorcut.
DaSheep
Registered Member
Posts
95
Karma
1
OS

Re: Script API and tag "Comment"  Topic is solved

Thu Jan 19, 2012 12:59 pm
Have you tried
Code: Select all
void setInfoHtml( String infoHtml )

http://amarok.kde.org/wiki/Development/Script_API#ScriptableService.StreamItem
rominf
Registered Member
Posts
5
Karma
0
OS

Re: Script API and tag "Comment"

Fri Jan 20, 2012 5:06 pm
montfras wrote:Have you tried
Code: Select all
void setInfoHtml( String infoHtml )

http://amarok.kde.org/wiki/Development/Script_API#ScriptableService.StreamItem

Thank you! You pushed me into a right direction. :)
I was stupid: I've wrote several programs in Qt but I've never wrote in QtScript. I got, that all I need is simply write:
Amarok.Engine.currentTrack().comment = "New comment"


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Sogou [Bot]