Registered Member
|
Well i am not a ruby programmer and this is my first amaroK script, so i would like anyone to give me tips on what's wrong. I gues this is the right forum for this.
Basicly it is a rating script that uses rating in the scoring algorithm, so that user defined rating is valued in with prev-score and precent. so what I need is to get the rating of the song, i don't know if i am doing right. And i need help geting the script started. (I know how to pakage it as a amarok script and add it. so that is not the question) Since it's not working, i wouldn't recomend anyone to try the script. Would be nice to know if I Handeling the licence right, the script is based on the default. regards
|
KDE Developer
|
How exactly is it not working? Do you get an error message?
--
Mark Kretschmann - Amarok Developer |
Registered Member
|
I started out modefing the defoult, and before made changes to the changes to the code, i made changes in the name etc and that worked. But when i changed the code. The script gav an 255 error message and was then removed from the script manager. When i make, a amarokscource.tar of it and add it via script manager, i now get an error message saying it the script isn't runeble.
this line was borrowed slightly modifed from the rate it script, ifigured that i could us the url arg instead of current_url that was created by that script. but i am not sure if i did this line right thanx P |
KDE Developer
|
chmod +x your script file.
--
Mark Kretschmann - Amarok Developer |
Registered Member
|
It's always the most obvious solutions one can not see.
Thanx , it helped. But the
only returns 0, anyone now how to get the rating? or whats wrong with this line. |
Registered Member
|
Did a work around, storing the rating from player one song ahead. This is not a fully satisfying soultion since this script will use the old rating if rating is changed during play. -edit- now the first public version is distrubuted. http://kde-apps.org/content/show.php?content=54051 Thanx for the help. P
Last edited by Paven on Sun Mar 04, 2007 6:20 pm, edited 1 time in total.
|
Registered users: Bing [Bot], Google [Bot], lockheed, Sogou [Bot]