XBMC Community Forum
[RELEASE] Pandora Radio (Script) Music Addon (Updated 2011-11-13 : V1.2.8) - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (/forumdisplay.php?fid=148)
+---- Thread: [RELEASE] Pandora Radio (Script) Music Addon (Updated 2011-11-13 : V1.2.8) (/showthread.php?tid=70471)



[RELEASE] Pandora Radio (Script) Music Addon (Updated 2011-11-13 : V1.2.8) - spbogie - 2010-03-21 23:12

This addon is currently undergoing a major rewrite. The version in this first post is no longer functional, however VTWoods has provided a working version which can be found on at https://gitorious.org/~vtwoods/xbmc-pandora/vtwoodss-xbmc-pandora-pithos/trees/master (click "Download master as tar.gz" on the right). If you have any input on design or improvements for the new version, please post your concepts in this thread and/or send me a PM.

[Image: fiZoql.jpg]

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.

- smorloc
    Modified script to include like/dislike/tired functionality; additional
    addon settings;layout changes

- htpc_guy
    Android-like skin

Download:
Gitorious project page
V1.2.10 (MediaFire)

Now go enjoy some music and give me feedback Big Grin

Please use a pastebin service when posting logs to reduce clutter in the thread. Thank you. (Plenty to choose from, take your pick)

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.


- spbogie - 2010-03-22 01:48

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...


- UnisonRuss - 2010-03-22 02:58

I really hope to see this... it looks great, and I would love to use it in XBMC Smile


- arosequi - 2010-03-22 04:59

spbogie Wrote: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.


- spbogie - 2010-03-24 05:28

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

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.)


- stacked - 2010-03-24 07:36

wow, thanks. Great work. Big Grin


- rsdza - 2010-03-24 08:54

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

Really excited about this...


- keller999 - 2010-03-24 17:58

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


- spbogie - 2010-03-24 19:05

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.


- keller999 - 2010-03-24 21:07

spbogie Wrote: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