XBMC Community Forum  

Go Back   XBMC Community Forum > Help and Support > Plugin/Script (Python) Help and Support

Plugin/Script (Python) Help and Support Python requests/suggestions, support, bugs, and everything python goes in here!
Please, add platform prefix to threads that are not platform-independent!:
Thread prefixes; "[LINUX]", "[LIVE]", "[MAC]", and "[WINDOWS]"

Reply
 
Thread Tools Search this Thread Display Modes
Old 2010-03-21, 23:12   #1
spbogie
Member
 
Join Date: Oct 2009
Posts: 53
spbogie is on a distinguished road
Default [RELEASE] Pandora Radio (script)

UPDATE (2010-08-03): As of commit 2d7edb1 the script has been updated to work with the new addons framework. Installations instructions have been updated. If you are still using 9.11 Camelot then stick with 4e4b37e and follow the instructions included in the README.

Song rating and info buttons don't do anything yet, but everything else should work.



Credits:
Code:
 - TWC Supplemental by Nuka1195
	Used extensively as a reference for building the GUI.
	Borrowed a few images for initial testing release.
 - pianobar
	Copyright (c) 2008-2010 Lars-Dominik Braun <PromyLOPh@lavabit.com>
	http://github.com/PromyLOPh/pianobar | http://6xq.net/html/00/17.html
		Uses as early reference for parts of the pandora protocol.
 - jurmb84
	Modified existing script to work with new xbmc addon framework
Install Instructions:
- Get latest script source from gitorious repo (git clone, or click source tree -> download master as tar.gz)
- Place the script folder in <xbmc profile>/addons/ and name it script.xbmc.pandora.
- Go to the pianobar project's github page (link in credits above).
- Under libpiano/src/ download both of the encryption key files. (Make sure you click RAW and download the actual file)
- Place both files in the script.xbmc.pandora directory.

Download:
Gitorious project page
Master branch latest revision (download on right (.tar.gz))
Commit 4e4b37e (If you're still on 9.11 Camelot stick with this)

Outside the US? Please try the proxy branch and let me know if it works for you. (Set xbmc's http proxy and it will pull the settings from there.)

Now go enjoy some music and give me feedback

P.S. Please remember that Pandora needs to pay royalties for the music they play, and it's the ads which they show on their site that allow them to do so. If you intend to use this script extensively please consider upgrading to a Pandora One account to support them and keep the music flowing. You may also wish to use a separate account for this script just in case they decide to start disabling accounts or something, don't want to loose all your stations and such.

Last edited by spbogie; 2010-08-04 at 04:13.
spbogie is offline   Reply With Quote
Old 2010-03-22, 01:48   #2
spbogie
Member
 
Join Date: Oct 2009
Posts: 53
spbogie is on a distinguished road
Default

I've taken the download down temporarily. Found some issues upon further testing.

I'm also starting to question whether I should actually release this considering the way it accesses Pandora using non-public api calls... I don't want to get sued...
spbogie is offline   Reply With Quote
Old 2010-03-22, 02:58   #3
UnisonRuss
Senior Member
 
Join Date: Jan 2009
Posts: 230
UnisonRuss is on a distinguished road
Default

I really hope to see this... it looks great, and I would love to use it in XBMC
__________________
XBMC (Camelot), Mac Mini w/ 2 GHz processor w/ 4 GB of Ram & Harmony = HTPC Greatness
UnisonRuss is offline   Reply With Quote
Old 2010-03-22, 04:59   #4
arosequi
Senior Member
 
Join Date: Nov 2008
Posts: 111
arosequi is on a distinguished road
Default

Quote:
Originally Posted by spbogie View Post
I've taken the download down temporarily. Found some issues upon further testing.

I'm also starting to question whether I should actually release this considering the way it accesses Pandora using non-public api calls... I don't want to get sued...
You're using pianobar, right? Its creator publishes the source (and binaries) of pianobar, and I don't think he's had any legal issues.

Plus, I don't think using non-public API calls is illegal, is it? Look at the whole Hulu/Boxee debacle a few months ago -- I don't think Hulu ever considered legal action, only technical barriers. I'm sure if they had a legal case, they would've pursued it.
arosequi is offline   Reply With Quote
Old 2010-03-24, 05:28   #5
spbogie
Member
 
Join Date: Oct 2009
Posts: 53
spbogie is on a distinguished road
Default

New download up . I believe I've fixed the issues that were causing it to stop playing randomly (stupid mistake on my part )

Installation has become slightly more involved, but it affords me a bit of piece of mind. Instructions in the first post (should be fairly self-explanatory.)
spbogie is offline   Reply With Quote
Old 2010-03-24, 07:36   #6
stacked
Skilled Python Coder
 
stacked's Avatar
 
Join Date: Jun 2007
Posts: 553
stacked is on a distinguished road
Default

wow, thanks. Great work.
stacked is offline   Reply With Quote
Old 2010-03-24, 08:54   #7
rsdza
Junior Member
 
Join Date: Mar 2010
Posts: 3
rsdza is on a distinguished road
Default

Thanks, will have to wait until I get home from work to try it out, but will report back asap

Really excited about this...
rsdza is offline   Reply With Quote
Old 2010-03-24, 17:58   #8
keller999
Junior Member
 
Join Date: Mar 2010
Posts: 2
keller999 is on a distinguished road
Default

Hello,

Thank you for working on this! Having some issues with the latest SVN:

Code:
10:54:21 T:2958064496 M:1606062080    INFO: -->Python script returned the following error<--
10:54:21 T:2958064496 M:1606062080   ERROR: Error Type: <type 'exceptions.TypeError'>
10:54:21 T:2958064496 M:1606062080   ERROR: Error Contents: Required argument 'uuid' (pos 1) not found
10:54:21 T:2958064496 M:1606062080   ERROR: Traceback (most recent call last):
                                              File "/home/theater/.xbmc/scripts/Pandora/default.py", line 115, in <module>
                                                panda = Panda()
                                              File "/home/theater/.xbmc/scripts/Pandora/default.py", line 22, in __init__
                                                self.settings = xbmc.Settings( path=scriptPath )
                                            TypeError: Required argument 'uuid' (pos 1) not found
10:54:21 T:2958064496 M:1606062080    INFO: -->End of Python script error report<--
Any direction would be greatly appreciated. Thanks!

-keller999
keller999 is offline   Reply With Quote
Old 2010-03-24, 19:05   #9
spbogie
Member
 
Join Date: Oct 2009
Posts: 53
spbogie is on a distinguished road
Default

keller999,
As the addon branch is merged into SVN, there are going to be a number of changes potentially breaking existing scripts. This script was written for the pre-merge xbmc python bindings. Once everything is settled with the merge and new python docs released, I will adjust it accordingly.
spbogie is offline   Reply With Quote
Old 2010-03-24, 21:07   #10
keller999
Junior Member
 
Join Date: Mar 2010
Posts: 2
keller999 is on a distinguished road
Default

Quote:
Originally Posted by spbogie View Post
keller999,
As the addon branch is merged into SVN, there are going to be a number of changes potentially breaking existing scripts. This script was written for the pre-merge xbmc python bindings. Once everything is settled with the merge and new python docs released, I will adjust it accordingly.
Thanks for the info! When it's ready for SVN, I'll be happy to test there. =)

-keller999
keller999 is offline   Reply With Quote
Reply

Bookmarks

Tags
pandora


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:39.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2010, XBMC Project