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

Amarok 2.2, Script: Amarok.Engine.trackFinished

Tags: None
(comma "," separated)
zonken
Registered Member
Posts
4
Karma
0
OS
Hi,
I created a little shut down script for amarok 2. In amarok 2.1 it works. Now I tested it with amarok-nightly. Here it does not work.

I think
Code: Select all
Amarok.Engine.trackFinished.connect( onTrackFinished );
does not work. When a track is finished my function will not be called.
Was there a change?
Thanks Rico
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS


--
Mark Kretschmann - Amarok Developer
zonken
Registered Member
Posts
4
Karma
0
OS
zonken
Registered Member
Posts
4
Karma
0
OS

In 2.3.0.90 the behaviour changed. (https://bugs.kde.org/show_bug.cgi?id=227312) Thanks to Michael!

I handle now both variants to react on finish of the last song in a play list:
Code: Select all
   
if (Amarok.Playlist.activeIndex() == -1
|| (Amarok.Playlist.activeIndex()+1 == Amarok.Playlist.totalTrackCount())){



Regards Rico
PS: sorry for my poor reaction in the bug report o)


Bookmarks



Who is online

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