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

Best way to add data fields and sort criteria? AmarokScript?

Tags: None
(comma "," separated)
wurst
Registered Member
Posts
1
Karma
0
Hi all,

I want to add some functionality to Amarok to help me manage my unwieldy (750GB) music library. Basically, I want to add two new data fields to be stored in the DB:

- Certainty of rating (1-5 stars). I want to record how certain I am about how I feel about my rating of the album/artist, so I can record an initial rating that I can later refine if I want to.
- Free text mini-review of the album/artist, for me to capture my thoughts about the music and what I consider similar artists, etc.

I also want to add functionality to be able to at least filter and maybe also sort based on rating+certainty (like show me everything in my collection with rating >= 4 stars and certainty >= 3 stars in alpha order according to Artist then Album) so I can just flick a switch and only get the music in there I really like for putting it on party shuffle or whatever.

What do you think the best way to pull this off is? I have to worries about my programmatic skill, I just want to save myself as much work as possible. It seems that an Amarok script is conceptually the best way to go, but I didn't see anything in the API docs about filtering/sorting, which is a pretty key thing I want to be able to do. Is my only hope hacking around directly with the Amarok source?

Cheers.
jefferai
Moderator
Posts
52
Karma
0
I'm not sure about the script API, but I will say that what you want to do is by no means trivial -- you have to not just add fields to the db, but also methods of entering and saving the data, and so on. It would be a lot of work, and it's not likely to be accepted upstream.


Bookmarks



Who is online

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