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

need scripting help

Tags: None
(comma "," separated)
aravorn
Registered Member
Posts
4
Karma
0

need scripting help

Sat Mar 20, 2010 9:08 pm
1. loading or playing m3u files
I got mp3 files to play with:
Amarok.Playlist.playMedia(new QUrl('file:///tmp.mp3'));

but with m3u's nothing happens. Is there a trick for that?

2. set rating
Wanna set the rating of the playing track like in version 1.4:
dcop amarok player setRating 2

with
Amarok.Window.OSD.setRating(int)
you can only set the rating displayed on the OSD and not for the actual track

3. Scriptable objects
Are all possible amarok objects documented on this site ?
http://amaroklive.com/wiki/Development/ ... API#Amarok
I tried to install the 'Simple Object Inspector' but when the scripts start I got an script error under amarok 2.2.2
SyntaxError: Expression too deep on Line: 1

Got this somebody working or is there another way to see all possible scriptable amarok objects?

Regards, Aravorn
valoriez
KDE CWG
Posts
625
Karma
3
OS
aravorn
Registered Member
Posts
4
Karma
0

Re: need scripting help

Mon Mar 29, 2010 1:02 pm
Got the point 1 running with:
Code: Select all
Amarok.Engine.currentTrack().rating

but no luck with loading a playlist. Is this feature implemented and should work or is this my fault?

Aravorn
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re: need scripting help

Tue Mar 30, 2010 7:09 am
aravorn wrote:1. loading or playing m3u files
I got mp3 files to play with:
Amarok.Playlist.playMedia(new QUrl('file:///tmp.mp3'));

but with m3u's nothing happens. Is there a trick for that?

Hmm, I think theoretically this should also be able to load playlists. It should be using the same code path that Amarok is using if you go to the Playlist menu, and then click "Add Media..."

So maybe this is a bug. If it works from within Amarok (can you test this?), but not from a script, then please make a bug report. Maybe our scripting system is using the wrong function there.


--
Mark Kretschmann - Amarok Developer
aravorn
Registered Member
Posts
4
Karma
0

Re: need scripting help

Tue Mar 30, 2010 1:28 pm
thanks for reply,
tested and it is not working -> raised bug 232697


Bookmarks



Who is online

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