-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pandora_song.audio_url is empty #52
Comments
Oh nice. Could you submit a patch for that? |
Also, happy new year! |
Happy new year! This is a hack. I just wanted to get things working - I don't know enough about Pandora's audio formats to come up with a real solution, although I think using the quality (low/med/high) rather than format, and allowing the admin to configure that might work. The change below isn't sufficient, 'cause Pandora won't send the HTTP_128_MP3 url. You also need to change pandora_client. Add 'HTTP_128_MP3' to DEFAULT_AUDIO_FORMATS in lib/pandora/song.rb.
|
I had to change the Song.find_or_create_from_pandora_song method to get the song URL from pandora_song.audio_urls['HTTP_128_MP3'] rather than using audio_url, which doesn't seem to contain any data.
I also had to add HTTP_128_MP3 to station.rb DEFAULT_AUDIO_FORMATS so that it would be included in songs from the station. HTTP_192_MP3 is no longer provided to non-Pandora One partners (even if the user login is Pandora One) and the only partner credentials that seem to work are Android.
The text was updated successfully, but these errors were encountered: