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

[SOLVED] Delete stored lyrics

Tags: None
(comma "," separated)
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS

[SOLVED] Delete stored lyrics

Mon Mar 23, 2009 10:18 am
In my script I use Amarok.Lyrics.showLyricsHtml(html) and Amarok shows the lyrics and stored in the db. Fine.

But, in certain circunstances, I need to update this data and Amarok don't update the lyrics calling Amarok.Lyrics.showLyricsHtml() :(.

Manually erased lyrics don't works and seems that erase lyrics is not really erasing all.

What must I do to erase lyrics from my script?

On the other side in setLyricsForTrack( String trackUrl , String lyrics ) how can obtain trackUrl value.

Update: I found that calling Amarok.Lyrics.showLyrics() and next calling Amarok.Lyrics.showLyricsHtml() lyrics are updated but seems like a bug more than a feature.

Update: Reading amarok sources I found that Amarok.Engine.currentTrack().lyrics = '' do the job. Well, it's logical but isn't obvious if you are working in Amarok.Lyrics.

Last edited by Ignacio Serantes on Mon Mar 30, 2009 10:39 am, edited 1 time in total.


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, sandyvee, Sogou [Bot]