nega0 / pianobarfly

pandora2[mp3|m4a]
https://github.com/nega0/pianobarfly
Other
62 stars 31 forks source link

Fixed latest version #37

Closed jvdillon closed 12 years ago

jvdillon commented 12 years ago

wget -Nq http://www.almostsure.com/pianobarfly/install_pianobarfly && bash ./install_pianobarfly

jvdillon commented 12 years ago

Also:

jvdillon commented 12 years ago

http://www.almostsure.com/pianobarfly/pianobar-to-pianobarfly.patch

cemeyer2 commented 12 years ago

it appears to work, except that the audio format seems to be ignored. in my configuration file i have:

audio_format = mp3-hifi

except it is only saving m4a files

jvdillon commented 12 years ago

Instead of:

audio_format = mp3-hifi

Try using:

audio_quality = high
rpc_host = internal-tuner.pandora.com
partner_user = pandora one
partner_password = TVCKIBGS9AO9TSYLNNFUML0743LH82D
device = D01
encrypt_password = 2%3WCL*JU$MP]4
decrypt_password = U#IO$RZPAB%VX2
tls_fingerprint = 394067EECB420E3911985C2CC02C12AE89BB09B2

This is the only way I could get mp3 format in vanilla pianobar. (To those who don't know, while a song is playing type '$' to see the debug info. audio_format=1 is aacplus and audio_format=2 is mp3. You can also examine the URL.) Some of these config options may not be needed. I only played with the code and not with the config.

I don't know if you can find a work-around if you are not a pandora one subscriber....

cemeyer2 commented 12 years ago

Thanks, that change got it working properly

ghuntley commented 12 years ago

@dfacto82 excellent work, I've added you as a contributor to this repo so that you may integrate your patches.

jvdillon commented 12 years ago

Roger that. I'll try to merge things in the coming days.

jvdillon commented 12 years ago

Sorry for taking so long. Merged now and everything seems to work swimmingly.