Kodi Community Forum

Full Version: [OBSOLETE] Pandora Radio (Script) Music Addon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
DamianXD,

Unfortunatly, as far as I could tell, the proxy is needed for both the api requests (which are handled by the script) and the actual fetching of the song (handled by xbmc itself).

If you want to you could try editing the script to hardcode your proxy settings and disable the global settings to see if it works. To do so, edit default.py starting at line 55 to look like the following (obviously substituting your own proxy settings).
Code:
if True: #GetGuiSetting( 1, "network.usehttpproxy" ):
        proxy_info = {
            "host" : "http://proxyserver.com", #GetGuiSetting( 3, "network.httpproxyserver" ),
            "port" : "8080", #GetGuiSetting( 3, "network.httpproxyport" ),
            "user" : "username", #GetGuiSetting( 3, "network.httpproxyusername" ),
            "pass" : "password" #GetGuiSetting( 3, "network.httpproxypassword" )
        }
        self.pandora.setProxy( proxy_info )
spbogie Wrote:DamianXD,

Unfortunatly, as far as I could tell, the proxy is needed for both the api requests (which are handled by the script) and the actual fetching of the song (handled by xbmc itself).

If you want to you could try editing the script to hardcode your proxy settings and disable the global settings to see if it works. To do so, edit default.py starting at line 55 to look like the following (obviously substituting your own proxy settings).
Code:
if True: #GetGuiSetting( 1, "network.usehttpproxy" ):
        proxy_info = {
            "host" : "http://proxyserver.com", #GetGuiSetting( 3, "network.httpproxyserver" ),
            "port" : "8080", #GetGuiSetting( 3, "network.httpproxyport" ),
            "user" : "username", #GetGuiSetting( 3, "network.httpproxyusername" ),
            "pass" : "password" #GetGuiSetting( 3, "network.httpproxypassword" )
        }
        self.pandora.setProxy( proxy_info )

Wow! Nice fix, it really did it for me Smile I can listen to pandora outside US and still use my normal connection for everything else without any slow down. Amazing work!, thank you so much!
Great script, works great with one exception. I get album art but song/artist/title fields only show a string of numbers. Anyone else had this issue?
Not sure if I'm doing something wrong. I ran these lines below (thanks by the way) from a putty command line, and they all installed correctly. But I don't see the Pandora option or add-on anywhere. Where should I be seeing this?

I rebooted as well, and this is on xbmc 10. Any help is greatly appreciated, thanks!

gsgleason Wrote:This rules.

To make it easy, assuming you're logged in as the xbmc user:
Code:
cd ~/.xbmc/addons/

wget -O xbmc-pandora-xbmc-pandora-master.tar.gz http://gitorious.org/xbmc-pandora/xbmc-pandora/archive-tarball/master

tar -xvzf xbmc-pandora-xbmc-pandora-master.tar.gz

rm xbmc-pandora-xbmc-pandora-master.tar.gz

mv xbmc-pandora-xbmc-pandora script.xbmc.pandora

cd $_

wget --no-check-certificate https://github.com/PromyLOPh/pianobar/raw/master/src/libpiano/crypt_key_output.h

wget --no-check-certificate https://github.com/PromyLOPh/pianobar/raw/master/src/libpiano/crypt_key_input.h
ericb1 Wrote:Not sure if I'm doing something wrong. I ran these lines below (thanks by the way) from a putty command line, and they all installed correctly. But I don't see the Pandora option or add-on anywhere. Where should I be seeing this?

I rebooted as well, and this is on xbmc 10. Any help is greatly appreciated, thanks!

Did you check Program Addons? I think some skins may call this scripts.
GM, had to clean out my ATV this morn and start from scratch, anyhow I tried install Pandora this morn and suddenly geting the error, Script Failed

Can anyone help here is the log
10:19:20 T:125341696 M:108609536 DEBUG: ------ Window Deinit (FileBrowser.xml) ------
10:19:20 T:205262848 M:109731840 DEBUG: FileManager: copy /var/mobile/script.xbmc.pandora.zip->special://home/addons/packages/script.xbmc.pandora.zip
10:19:20 T:205262848 M:109518848 DEBUG: GetZipList - Processing zip://special%3a%2f%2fhome%2faddons%2fpackages%2fscript%2exbmc%2epandora%2ezip/
10:19:20 T:205262848 M:109514752 DEBUG: ZipManager: not a zip file!
10:19:20 T:205262848 M:109514752 ERROR: GetDirectory - Error getting zip://special%3a%2f%2fhome%2faddons%2fpackages%2fscript%2exbmc%2epandora%2ezip/
10:19:20 T:205262848 M:109518848 ERROR: Package script.xbmc.pandora.zip is not a valid addon
10:19:20 T:125341696 M:109518848 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
10:19:20 T:125341696 M:111329280 DEBUG: CGUIMediaWindow::GetDirectory ()
10:19:20 T:125341696 M:111329280 DEBUG: ParentPath = []
10:19:20 T:182591488 M:111329280 DEBUG: thread start, auto delete: 0
10:19:20 T:182591488 M:111329280 DEBUG: Thread 182591488 terminating
10:19:21 T:125341696 M:111591424 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/libid3tag-arm-osx.so)
10:19:21 T:125341696 M:111591424 DEBUG: Unloading: libid3tag-arm-osx.so
10:19:21 T:125341696 M:111591424 INFO: CheckIdle - Closing session to http://stream27c.grooveshark.com (easy=0x992c000, multi=0xafd4690)
10:19:21 T:125341696 M:111591424 INFO: CheckIdle - Closing session to http://stream27c.grooveshark.com (easy=0x9935000, multi=0xa4f4a00)
10:19:25 T:125341696 M:112431104 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
10:19:44 T:192114688 M:112726016 DEBUG: Thread 192114688 terminating (autodelete)
10:19:50 T:205262848 M:112730112 DEBUG: Thread 205262848 terminating (autodelete)
10:20:03 T:125341696 M:112607232 INFO: Loading skin file: FileBrowser.xml
10:20:03 T:125341696 M:112594944 DEBUG: ------ Window Init (FileBrowser.xml) ------
10:20:05 T:192114688 M:111017984 DEBUG: thread start, auto delete: 1
10:20:09 T:125341696 M:110489600 DEBUG: ------ Window Deinit (FileBrowser.xml) ------
10:20:09 T:192114688 M:111611904 DEBUG: FileManager: copy /var/mobile/xbmc-pandora-xbmc-pandora-master.zip->special://home/addons/packages/xbmc-pandora-xbmc-pandora-master.zip
10:20:09 T:192114688 M:111329280 DEBUG: GetZipList - Processing zip://special%3a%2f%2fhome%2faddons%2fpackages%2fxbmc%2dpandora%2dxbmc%2dpandora%2dmaster%2ezip/
10:20:09 T:192114688 M:111325184 DEBUG: ZipManager: not a zip file!
10:20:09 T:192114688 M:111325184 ERROR: GetDirectory - Error getting zip://special%3a%2f%2fhome%2faddons%2fpackages%2fxbmc%2dpandora%2dxbmc%2dpandora%2dmaster%2ezip/
10:20:09 T:192114688 M:111329280 ERROR: Package xbmc-pandora-xbmc-pandora-master.zip is not a valid addon
10:20:09 T:125341696 M:111013888 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
10:20:09 T:125341696 M:110776320 DEBUG: CGUIMediaWindow::GetDirectory ()
10:20:09 T:125341696 M:110776320 DEBUG: ParentPath = []
10:20:09 T:205135872 M:110776320 DEBUG: thread start, auto delete: 0
10:20:09 T:205135872 M:110776320 DEBUG: Thread 205135872 terminating
10:20:15 T:125341696 M:111558656 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
10:20:26 T:125341696 M:111988736 DEBUG: CGUIMediaWindow::GetDirectory (addons://enabled/)
10:20:26 T:125341696 M:111988736 DEBUG: ParentPath = []
10:20:26 T:182591488 M:111988736 DEBUG: thread start, auto delete: 0
10:20:26 T:182591488 M:111988736 DEBUG: Thread 182591488 terminating
10:20:28 T:125341696 M:111280128 DEBUG: CGUIMediaWindow::GetDirectory (addons://enabled/xbmc.addon.audio)
10:20:28 T:125341696 M:111280128 DEBUG: ParentPath = [addons://enabled/]
10:20:28 T:182902784 M:111628288 DEBUG: thread start, auto delete: 0
10:20:28 T:182902784 M:111628288 DEBUG: Thread 182902784 terminating
10:20:28 T:192114688 M:110968832 DEBUG: DoWork - took 156 ms to load special://masterprofile/Thumbnails/c/cbebd8cf.jpg
10:20:29 T:125341696 M:106852352 DEBUG: CGUIMediaWindow::GetDirectory (addons://enabled/)
10:20:29 T:125341696 M:106852352 DEBUG: ParentPath = []
10:20:29 T:205135872 M:106852352 DEBUG: thread start, auto delete: 0
10:20:29 T:205135872 M:106852352 DEBUG: Thread 205135872 terminating
10:20:59 T:192114688 M:111542272 DEBUG: Thread 192114688 terminating (autodelete)
Hello all, i'm new to the xbmc scene and was wondering if anyone can help me out. I just purchased an ATV2 and installed XBMC on it. I tried to follow the directions I got from this site:

http://www.macminihometheater.com/2011/0...-via-xbmc/

I noticed that when i SSH into the ATV2, this path does not exist:
/private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/.

However i did find the path through /Applications/XBMC.frappliance/XBMCData/XBMCHome/addons

I put the script.xbmc.pandora folder into the addons directory, but I could not find it navigating anywhere on XBMC. What am i doing wrong? Someone please help!
gsgleason Wrote:This rules.

To make it easy, assuming you're logged in as the xbmc user:
Code:
cd ~/.xbmc/addons/

wget -O xbmc-pandora-xbmc-pandora-master.tar.gz http://gitorious.org/xbmc-pandora/xbmc-pandora/archive-tarball/master

tar -xvzf xbmc-pandora-xbmc-pandora-master.tar.gz

rm xbmc-pandora-xbmc-pandora-master.tar.gz

mv xbmc-pandora-xbmc-pandora script.xbmc.pandora

cd $_

wget --no-check-certificate https://github.com/PromyLOPh/pianobar/raw/master/src/libpiano/crypt_key_output.h

wget --no-check-certificate https://github.com/PromyLOPh/pianobar/raw/master/src/libpiano/crypt_key_input.h

ok, I got it to show up under music addons using the method above, but when i select it, it tells me the script failed. Any clues?
gsgleason Wrote:This rules.

To make it easy, assuming you're logged in as the xbmc user:
Code:
cd ~/.xbmc/addons/

wget -O xbmc-pandora-xbmc-pandora-master.tar.gz http://gitorious.org/xbmc-pandora/xbmc-pandora/archive-tarball/master

tar -xvzf xbmc-pandora-xbmc-pandora-master.tar.gz

rm xbmc-pandora-xbmc-pandora-master.tar.gz

mv xbmc-pandora-xbmc-pandora script.xbmc.pandora

cd $_

wget --no-check-certificate https://github.com/PromyLOPh/pianobar/raw/master/src/libpiano/crypt_key_output.h

wget --no-check-certificate https://github.com/PromyLOPh/pianobar/raw/master/src/libpiano/crypt_key_input.h

ok, I got it to show up under music addons, but when i select it, it tells me the script failed. Any clues?
I figured it out thanks
hrodriguez77 Wrote:I figured it out thanks

Hi,

I am in the same predicament as you... could you please let us know how you were able to install...??

Many thanks.
Hi Hrodriguez,

Any chance you could explain how you solved it? I am trying to do it as well and am not having any luck.

Thanks,

H.
hrodriguez77 Wrote:I figured it out thanks

How about sharing the info so the rest of us can do it. Wink
TreyS Wrote:How about sharing the info so the rest of us can do it. Wink
It's not hard to do, you can follow this steps:
- Open up your ssh utility of your preference (Putty)
- Go to your apple tv 2 -> Configuration -> Network and then write down your IP Address
- Use the IP Address from before to enter your apple tv by the SSH program like this:
Destination: Your IP address (something like 192.168.1.20)
Port: 22
User: root
- When asked, enter the password "alpine" without the "
- Now follow the next sequence of commands:
Code:
wget http://gitorious.org/xbmc-pandora/xbmc-pandora/archive-tarball/master
tar xvf master
mv xbmc-pandora-xbmc-pandora/ /private/var/mobile/Library/Preferences/XBMC/addons/

That's all, restart XBMC and the script should be there
Hi,
I'm trying to run the pandora script - but I'm getting an error:

http://pastebin.com/GTBHwa77

Any suggestions?

Thanks!