![]() Registered Member ![]()
|
Hello,
I'm trying to develop a script who copy a part of your collection in a specific directory. The main objective is to copy your favorite part of your collection in your mp3 player, in case of that your collection is bigger than your player capacity. I know that Amarok can create a playlist with favorite songs, but I'd like to know what's the policy of a prefered song in Amarok 2. In Amarok 1.4, I think it's when the score of the song is more than 74 (default score after 1 playing of the song), bug it seems to be more complicated in Amarok 2 (the Statistics table contains score and rating field, I don't know what it's mean). Thanks for your help and excuse for my english... ![]()
Excuse my english.. please
![]() "Before, I had a life, now, I have a PC." |
![]() Registered Member ![]()
|
After looking the source code (BiaisedSolver.cpp and some others), the function for making favorite playlists seems to be very complex for a simple script...
But I'd just like to know what's the policy about rating and score fields in the database. Thanks.
Excuse my english.. please
![]() "Before, I had a life, now, I have a PC." |
![]() Registered Member ![]()
|
So, that's the policy I've chosen for the first version of my plugin :
Specify a score limit, default at 60. Select all songs with score >= 60 ordered by score Select all songs who don't listed in statistics table (it's the songs who have been never readed) ordered by random Select all songs with score < 60 ordered by score This list of songs define an order of songs, favorite first. If you have a better policy to do that, I'm interested !
Excuse my english.. please
![]() "Before, I had a life, now, I have a PC." |
![]() Registered Member ![]()
|
This sounds like a great idea! I used to have a 'favourites' folder for this function. But I had to manually update it which was a hassle. PS Your English is fine except for your spelling of 'favourite'. Don't miss out the 'u' or people will think you are American!
"We don't have a monopoly. We have market share. There's a difference." STEVE BALLMER
|
![]() Registered Member ![]()
|
I've released a first version, if you want to test
![]() http://kde-apps.org/content/show.php/Sy ... ent=100841
Excuse my english.. please
![]() "Before, I had a life, now, I have a PC." |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]