psuedocode: bool isFavorite, bool hateSong ()

Asked by another anonomous

hey, i sometimes accidently hate, and ban songs..
possible rewrite (psuedoccode)
class song{
onclick.hatesong(thissong){thissong.hate = bool Hatesong(thissong);}
bool Hatesong (){
   if (Hatesong==true){
      return false;}
  else if (Hatesong==false){
     return true;
}
}
or something to this effect, with the same structure for lovesong...i know on the pandora website they require you to go into station settings to undo the ban/love tag.

Question information

Language:
English Edit question
Status:
Answered
For:
Pithos Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Kevin Mehall (kevin-mehall) said :
#1

That would be ideal, but Pandora's XMLRPC API doesn't include any mechanism to remove a song rating.

Revision history for this message
another anonomous (michael-schneider-1) said :
#2

*i accidently ban/love songs

Revision history for this message
another anonomous (michael-schneider-1) said :
#3

too bad,
i should really look at the code in detail but im a 'begining' programmer...so bear with me

assumptions:
the hate/ban tag doesnt need to be pushed to the preferences until a new set of 4 songs is fetched...

therefore couldnt you declare a temporary variable (of ban or love) for the song. which would be converted to the actual tag when you call for a new set of 4 songs to be generated.
This would allow for the first 3 songs to have a bool_switch for the ban/love

or would implementing this be madness...

i should really study the code a bit
thanks for your time and more thanks for writing this program

Revision history for this message
another anonomous (michael-schneider-1) said :
#4

too bad,
i should really look at the code in detail but im a 'begining'
programmer...so bear with me

assumptions:
the hate/ban tag doesnt need to be pushed to the preferences until a new set
of 4 songs is fetched...

therefore couldnt you declare a temporary variable (of ban or love) for the
song. which would be converted to the actual tag when you call for a new set
of 4 songs to be generated.
This would allow for the first 3 songs to have a bool_switch for the
ban/love

or would implementing this be madness...

i should really study the code a bit
thanks for your time and more thanks for writing this program

On Sun, Oct 10, 2010 at 3:19 PM, Kevin Mehall <
<email address hidden>> wrote:

> Your question #128731 on Pithos changed:
> https://answers.launchpad.net/pithos/+question/128731
>
> Status: Open => Answered
>
> Kevin Mehall proposed the following answer:
> That would be ideal, but Pandora's XMLRPC API doesn't include any
> mechanism to remove a song rating.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/pithos/+question/128731/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/pithos/+question/128731
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
Kevin Mehall (kevin-mehall) said :
#5

That's a good idea. Might be a little confusing for users, but is better than nothing. Created a wishlist bug to track this.

Can you help with this problem?

Provide an answer of your own, or ask another anonomous for more information if necessary.

To post a message you must log in.