[RELEASE] Pandora Radio (Script) Music Addon (Updated 2011-11-13 : V1.2.8)

  Thread Rating:
  • 10 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
VTWoods Offline
Junior Member
Posts: 14
Joined: May 2011
Reputation: 4
Post: #1396
I was able to reproduce the problem where the gui loads but music cannot play. I am working on debugging it.
find quote
VTWoods Offline
Junior Member
Posts: 14
Joined: May 2011
Reputation: 4
Post: #1397
Is there a reason to continue supporting accplus and mp3 specifically? it looks like they are starting to drop these formats and using low, medium, and high quality. I modified the script to support these three. You might need to delete the settings from .xbmc/userdata/addon_data/scripts.xbmc.pandora I noticed that there is some old stuff in here that can cause the addon to fail.
find quote
Toddmc Offline
Junior Member
Posts: 4
Joined: Mar 2012
Reputation: 0
Post: #1398
(2012-06-04 21:00)Dixon Butz Wrote:  Here is an updated zip

http://www.mediafire.com/?1qmko44sue39tye

Is this zip still supposed to work? Because it doesn't load for me, I get a script error no matter which audio format I select. I tried getting the latest build from vtwoods gitorious too, no joy.

So, I guess Pandora is winning the fight vs it's paying customers.
(This post was last modified: 2012-06-10 04:41 by Toddmc.)
find quote
dallasnights Offline
Fan
Posts: 487
Joined: Jan 2011
Reputation: 0
Post: #1399
Not working this morning, can login and see my playlists but when I click on a station nothing happens, anyone have a fix for ATV2

07:34:20 T:199102464 NOTICE: -->Python Interpreter Initialized<--
07:34:21 T:199102464 NOTICE: PANDORA: Initializing v1.2.10-git
07:34:21 T:199102464 NOTICE: PANDORA: sys.platform = darwin
07:34:24 T:199102464 ERROR: /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/pandaplayer.py:7: DeprecationWarning: object.__init__() takes no parameters
xbmc.Player.__init__( self, xbmc.PLAYER_CORE_MPLAYER )
07:34:25 T:199102464 NOTICE: PANDORA: Window Initalized!!!
07:34:32 T:199102464 NOTICE: PANDORA: getting more songs
07:34:34 T:199102464 ERROR: Exception in python script callback execution
07:34:34 T:199102464 ERROR: Traceback (most recent call last):
07:34:34 T:199102464 ERROR: File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/pandagui.py", line 63, in onClick
07:34:34 T:199102464 ERROR: self.panda.playStation( selItem.getProperty("stationId") )
07:34:34 T:199102464 ERROR: File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py", line 122, in playStation
07:34:34 T:199102464 ERROR: self.getMoreSongs()
07:34:34 T:199102464 ERROR: File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py", line 136, in getMoreSongs
07:34:34 T:199102464 ERROR: songs = station.get_playlist()
07:34:34 T:199102464 ERROR: File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/pandora/pandora.py", line 254, in get_playlist
07:34:34 T:199102464 ERROR: songs.append(Song(self.pandora, i))
07:34:34 T:199102464 ERROR: File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/pandora/pandora.py", line 278, in __init__
07:34:34 T:199102464 ERROR: self.audioUrl = d['additionalAudioUrl'][self.pandora.audio_format]
07:34:34 T:199102464 ERROR: IndexError
07:34:34 T:199102464 ERROR: :
07:34:34 T:199102464 ERROR: list index out of range
find quote
VTWoods Offline
Junior Member
Posts: 14
Joined: May 2011
Reputation: 4
Post: #1400
(2012-06-10 14:36)dallasnights Wrote:  Not working this morning, can login and see my playlists but when I click on a station nothing happens, anyone have a fix for ATV2

07:34:20 T:199102464 NOTICE: -->Python Interpreter Initialized<--
07:34:21 T:199102464 NOTICE: PANDORA: Initializing v1.2.10-git
07:34:21 T:199102464 NOTICE: PANDORA: sys.platform = darwin
07:34:24 T:199102464 ERROR: /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/pandaplayer.py:7: DeprecationWarning: object.__init__() takes no parameters
xbmc.Player.__init__( self, xbmc.PLAYER_CORE_MPLAYER )
07:34:25 T:199102464 NOTICE: PANDORA: Window Initalized!!!
07:34:32 T:199102464 NOTICE: PANDORA: getting more songs
07:34:34 T:199102464 ERROR: Exception in python script callback execution
07:34:34 T:199102464 ERROR: Traceback (most recent call last):
07:34:34 T:199102464 ERROR: File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/pandagui.py", line 63, in onClick
07:34:34 T:199102464 ERROR: self.panda.playStation( selItem.getProperty("stationId") )
07:34:34 T:199102464 ERROR: File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py", line 122, in playStation
07:34:34 T:199102464 ERROR: self.getMoreSongs()
07:34:34 T:199102464 ERROR: File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py", line 136, in getMoreSongs
07:34:34 T:199102464 ERROR: songs = station.get_playlist()
07:34:34 T:199102464 ERROR: File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/pandora/pandora.py", line 254, in get_playlist
07:34:34 T:199102464 ERROR: songs.append(Song(self.pandora, i))
07:34:34 T:199102464 ERROR: File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/pandora/pandora.py", line 278, in __init__
07:34:34 T:199102464 ERROR: self.audioUrl = d['additionalAudioUrl'][self.pandora.audio_format]
07:34:34 T:199102464 ERROR: IndexError
07:34:34 T:199102464 ERROR: :
07:34:34 T:199102464 ERROR: list index out of range

This is the audio type issue. You can either get my newest commit or change the audio type as suggested in earlier posts.
find quote
dallasnights Offline
Fan
Posts: 487
Joined: Jan 2011
Reputation: 0
Post: #1401
nevermind you are right changed to mp3 all is working now, thanks
(This post was last modified: 2012-06-10 16:32 by dallasnights.)
find quote
VTWoods Offline
Junior Member
Posts: 14
Joined: May 2011
Reputation: 4
Post: #1402
(2012-06-10 04:30)Toddmc Wrote:  
(2012-06-04 21:00)Dixon Butz Wrote:  Here is an updated zip

http://www.mediafire.com/?1qmko44sue39tye

Is this zip still supposed to work? Because it doesn't load for me, I get a script error no matter which audio format I select. I tried getting the latest build from vtwoods gitorious too, no joy.

So, I guess Pandora is winning the fight vs it's paying customers.

This is not a fight between pandora and customers. These changes are needed because pandora changes their protocol. They own the protocol and they can change it whenever they want.

The addon is not written in the most robust way. If you want this addon to work with more consistency fork my code and add better data validation to the json parsing and config parsing. I am simply making everything work, but a full rewrite is needed.

As for your problems, try my fork again. I forgot to push my changes after I made them. Also make sure you delete your userdata directory. I noticed some old keys there (The plugin will stop working if you clicked refetch it seems). If you are still having problems, post your log. I am really just guessing right now without your logs.

Addon data directory (key_in and key_out are the trouble files):
/.xbmc/userdata/addon_data/script.xbmc.pandora
find quote
dallasnights Offline
Fan
Posts: 487
Joined: Jan 2011
Reputation: 0
Post: #1403
working great on ATV2 thank you!
find quote
kreeturez Offline
Donor
Posts: 261
Joined: Aug 2011
Reputation: 7
Post: #1404
+1; working perfect here as well; under Win32 Frodo Alpha 2. Missed this one!

Thanks a lot, VTWoods!
find quote
Dixon Butz Offline
Senior Member
Posts: 261
Joined: Dec 2010
Reputation: 3
Location: Hershey Highway
Post: #1405
Last zip with VTWoods changes.

http://www.mediafire.com/file/f4fad94dac...andora.zip

All credit goes to VTWoods. Don't forget to rep him and thank him!
find quote
lanynya Offline
Junior Member
Posts: 4
Joined: May 2012
Reputation: 0
Thumbs Up  RE: [RELEASE] Pandora Radio (Script) Music Addon (Updated 2011-11-13 : V1.2.8)
Post: #1406
Thanks a lot,work good.
(This post was last modified: 2012-06-10 22:16 by lanynya.)
find quote
cmckitterick Offline
Junior Member
Posts: 30
Joined: Feb 2012
Reputation: 0
Post: #1407
Oddly enough, this isn't working for me. I've updated to the newest version (tried both the mediafire and git). Here's my log:
Code:
14:55:47 T:1060  NOTICE: -->Python Interpreter Initialized<--
14:55:47 T:1060  NOTICE:  StorageServer Module loaded RUN
14:55:47 T:1060  NOTICE: StorageClient-0.9.2 Starting server
14:55:47 T:1060  NOTICE: StorageServer-0.9.2 Storage Server starting C:\Users\xbmc\AppData\Roaming\XBMC\userdata\Database\commoncache.db
14:55:47 T:2392  NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
14:55:47 T:2392  NOTICE: UDP: Listening on port 9777
14:55:47 T:3568  NOTICE: Creating InputStream
14:55:47 T:3568   ERROR: CDVDPlayer::OpenInputStream - error opening [p]
14:55:47 T:3568  NOTICE: CDVDPlayer::OnExit()
14:55:47 T:3568  NOTICE: CDVDPlayer::OnExit() deleting input stream
14:55:47 T:2476   ERROR: Playlist Player: skipping unplayable item: 0, path [p]
14:55:47 T:1708   ERROR: CPicture::CacheImage Unable to create new image special://masterprofile/Thumbnails/Music/f/f942e545.tbn from image E:\Music\Beck\Guero\cover.jpg
14:55:47 T:2476  NOTICE: CDVDPlayer::CloseFile()
14:55:47 T:2476 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:55:47 T:2476  NOTICE: DVDPlayer: waiting for threads to exit
14:55:47 T:2476  NOTICE: DVDPlayer: finished waiting
14:55:48 T:1040  NOTICE: -->Python Interpreter Initialized<--
14:55:48 T:580   ERROR: CRemoteControl::Connect - failed to connect
14:55:49 T:1708   ERROR: CPicture::CacheImage Unable to create new image special://masterprofile/Thumbnails/Music/e/eba0cff0.tbn from image E:\Music\Soundgarden\A-Sides\cover.jpg
14:55:49 T:1708   ERROR: CPicture::CacheImage Unable to create new image special://masterprofile/Thumbnails/Music/d/d933b832.tbn from image E:\Music\The Killers\Hot Fuss (Limited Edition)\cover.jpg
14:55:49 T:1708  NOTICE: My Music: Scanning for music info using worker thread, operation took 00:02
14:55:49 T:3276 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 28
14:55:49 T:3276   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
14:55:51 T:3276 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 28
14:55:51 T:3276   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
14:55:53 T:3276 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 28
14:55:53 T:3276   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
14:56:02 T:2476   ERROR: Texture manager unable to load file: C:\Users\xbmc\script.xbmc.pandora.zip\icon.png
14:56:24 T:1252  NOTICE: -->Python Interpreter Initialized<--
14:56:24 T:1252  NOTICE: PANDORA: Initializing v1.2.10
14:56:24 T:1252  NOTICE: PANDORA: sys.platform = win32
14:56:24 T:1252  NOTICE: PANDORA: First run, showing settings dialog
14:56:26 T:1252  NOTICE: PANDORA: Loading key from file "C:\Users\xbmc\AppData\Roaming\XBMC\userdata\addon_data\script.xbmc.pandora\key_i​n"
14:56:26 T:1252  NOTICE: PANDORA: Downloading key from url "https://raw.github.com/PromyLOPh/pianobar/json/src/libpiano/crypt_key_input.h"
14:56:29 T:1252   ERROR: Error Type: <type 'exceptions.AttributeError'>
14:56:29 T:1252   ERROR: Error Contents: 'HTTPError' object has no attribute 'reason'
14:56:29 T:1252   ERROR: Traceback (most recent call last):
                                              File "C:\Users\xbmc\AppData\Roaming\XBMC\addons\script.xbmc.pandora\default.py", line 248, in <module>
                                                panda = Panda()
                                              File "C:\Users\xbmc\AppData\Roaming\XBMC\addons\script.xbmc.pandora\default.py", line 63, in __init__
                                                self.pandora = Pandora( dataDir, fmt )
                                              File "C:\Users\xbmc\AppData\Roaming\XBMC\addons\script.xbmc.pandora\libpandora\pandora​.py", line 34, in __init__
                                                if not self.keys.loadKeys():
                                              File "C:\Users\xbmc\AppData\Roaming\XBMC\addons\script.xbmc.pandora\libpandora\keys.py​", line 44, in loadKeys
                                                "crypt_key_input.h" )
                                              File "C:\Users\xbmc\AppData\Roaming\XBMC\addons\script.xbmc.pandora\libpandora\keys.py​", line 124, in _loadKeyFromURL
                                                print "PANDORA: URLError: %s" %e.reason
                                            AttributeError: 'HTTPError' object has no attribute 'reason'

I took a pretty generous slice of the log as I wanted to make sure I didn't leave anything out. It's probably also worth mentioning that I'm running XBMCBuntu.
(This post was last modified: 2012-06-11 07:00 by cmckitterick.)
find quote
spbogie Offline
Skilled Python Coder
Posts: 125
Joined: Oct 2009
Reputation: 5
Post: #1408
(2012-06-11 06:59)cmckitterick Wrote:  14:55:47 T:1060 NOTICE: StorageServer-0.9.2 Storage Server starting C:\Users\xbmc\AppData\Roaming\XBMC\userdata\Database\commoncache.db
---snip---
14:55:47 T:1708 ERROR: CPicture::CacheImage Unable to create new image special://masterprofile/Thumbnails/Music/f/f942e545.tbn from image E:\Music\Beck\Guero\cover.jpg
---snip---
14:56:24 T:1252 NOTICE: PANDORA: sys.platform = win32

It's probably also worth mentioning that I'm running XBMCBuntu.
Your log would seem to suggest otherwise.

Also, the following suggests you're running on the most recent release version.
(2012-06-11 06:59)cmckitterick Wrote:  
Code:
14:56:24 T:1252  NOTICE: PANDORA: Initializing v1.2.10
If you paid attention to the big red text at the top of the OP, my repository is currently unmaintained and broken. Look through the last few pages of this thread, VTWoods has kindly taken up the initiative to repair things, and you can get a working version from his repository.


@VTWoods, Thank you again for picking this up. You may want to increment the version number as I believe xbmc may do some caching when installing from zip. (1.3 perhaps? You may want to add a 4th digit to increment for each commit as well since people are taking snapshots for the zip files.)

@Everyone helping by uploading ZIPs. Please remember to remove the old links when a new one is posted to avoid confusion. I've removed the link to my last official release from the OP as well for this same reason.
(This post was last modified: 2012-06-11 18:01 by spbogie.)
find quote
Steve Shaffer Offline
Junior Member
Posts: 8
Joined: Mar 2012
Reputation: 0
Post: #1409
Mine works fine with the VTWoods download. Thanks to the original maker and any or all that worked on updates!
find quote
cmckitterick Offline
Junior Member
Posts: 30
Joined: Feb 2012
Reputation: 0
Post: #1410
(2012-06-11 18:00)spbogie Wrote:  
(2012-06-11 06:59)cmckitterick Wrote:  14:55:47 T:1060 NOTICE: StorageServer-0.9.2 Storage Server starting C:\Users\xbmc\AppData\Roaming\XBMC\userdata\Database\commoncache.db
---snip---
14:55:47 T:1708 ERROR: CPicture::CacheImage Unable to create new image special://masterprofile/Thumbnails/Music/f/f942e545.tbn from image E:\Music\Beck\Guero\cover.jpg
---snip---
14:56:24 T:1252 NOTICE: PANDORA: sys.platform = win32

It's probably also worth mentioning that I'm running XBMCBuntu.
Your log would seem to suggest otherwise.

Also, the following suggests you're running on the most recent release version.
(2012-06-11 06:59)cmckitterick Wrote:  
Code:
14:56:24 T:1252  NOTICE: PANDORA: Initializing v1.2.10
If you paid attention to the big red text at the top of the OP, my repository is currently unmaintained and broken. Look through the last few pages of this thread, VTWoods has kindly taken up the initiative to repair things, and you can get a working version from his repository.


@VTWoods, Thank you again for picking this up. You may want to increment the version number as I believe xbmc may do some caching when installing from zip. (1.3 perhaps? You may want to add a 4th digit to increment for each commit as well since people are taking snapshots for the zip files.)

@Everyone helping by uploading ZIPs. Please remember to remove the old links when a new one is posted to avoid confusion. I've removed the link to my last official release from the OP as well for this same reason.

Weird. I was running Windows, but I changed over to XBMCBuntu after windows went kablooie on me (I can tell the difference Wink). I also deleted/uninstalled the pandora script and the stuff in userdata. Then I cloned the git (thought it was the right one, but I'll check it out). I'll give it another looksie to see if there's something else weird going on.

EDIT: Got the wrong GIT; whoops. I'll check it again later tonight. Thanks.
(This post was last modified: 2012-06-12 01:38 by cmckitterick.)
find quote
Post Reply