Bug 342096

Summary: QtScript API to allow scripts to react in custom ways to double clicking items in collection pane
Product: [Applications] amarok Reporter: Be <be.0>
Component: Collection BrowserAssignee: Amarok Developers <amarok-bugs-dist>
Status: REPORTED ---    
Severity: wishlist CC: kretschmann, matej, simonandric5
Priority: NOR    
Version: 2.8-git   
Target Milestone: 2.9   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:

Description Be 2014-12-21 21:51:40 UTC
Currently, when double clicking an item in the collection pane, Amarok (tries to) add it to the playlist. It would be helpful if this action could be disabled and scripts could handle this action in their own way. For example, I want to display a list of SoundCloud users at level 0. It does not make sense for Amarok to try to add a user to the playlist. Instead, I want this user to be used as a search term when double clicked.

One way to implement this could be to have Amarok call the populate function for the script with level -1 when level 0 items are double clicked or Enter is pressed when a level 0 item is selected. Perhaps Amarok would only do this for level 0 items without a playableUrl set but with callbackData set (see also: Bug #342093).

Reproducible: Always
Comment 1 Myriam Schweingruber 2014-12-22 08:50:37 UTC
Well, that was changed a while ago and already triggered quite some discussion on the developer ML, please search the archives, and I doubt it should be handled or changed by scripts.

Instead of writing a script, did you consider writing an actualy Service for SoundCloud instead? Would make much more sense.