Release - Pandoki - Pandora Internet Radio (Update 2nd Sept 2016: v0.9.3)

  Thread Rating:
  • 6 Vote(s) - 4.83 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
gominoa Offline
Member
Posts: 57
Joined: Oct 2014
Reputation: 11
Music  Pandoki - Pandora Internet Radio (Update 2nd Sept 2016: v0.9.3)
Post: #1
Here's a Pandora player I've been working on. It does not use a custom GUI like the official Pandora plugin. It uses XBMC native playlist and keeps a running list of songs played. It can optionally skip advertisements and save tracks to the Music Library with MusicBrainz tagging. You can also rate songs Thumbs Up/Down by adjusting the number of stars in the Song Info screen. (see below for details)

After installing, fill out Pandora username and password. It will show your list of stations. Play one and you'll be brought to the playlist which updates as new songs queue. If enabled, tracks will be saved, tagged, and can be added to the XBMC Music Library. Let me know how it works for you and any problems you encounter.

ZIP Download: plugin.audio.pandoki-0.9.3.zip (System -> Settings -> Add-ons -> Install from zip file)
Repo Download: repository.gominoa-0.1.0.zip (Music -> Add-ons -> Get More -> Pandoki -> Install)


Song rating: Open "Song information" (press 'i') and adjust stars (choose Basic/Expert in Add-on settings)
Code:
Basic
* 5,4,3 - Thumbs Up
  2,1   - Thumbs Down and Skip
* 0     - Clear Previous Rating

Expert
  5 - Create and Play New Station Based on Song
* 4 - Add Song to current Station Variety
* 3 - Thumbs Up
  2 - Mark Song Tired and Skip (wont play for 30 days)
  1 - Thumbs Down and Skip
* 0 - Clear Previous Rating
(* There's no visual indication that these work, but they do. See 'Station details' on pandora.com via webbrowser)

[Image: l5dbWR6.jpg]


Shortcuts/Favorites:
Add to userdata/keymaps/keyboard.xml :
Code:
<keymap>
  <MyMusicPlaylist>
    <keyboard>
      <f1>RunPlugin(plugin://plugin.audio.pandoki/?rate=branch)</f1>
      <f2>RunPlugin(plugin://plugin.audio.pandoki/?rate=seed)</f2>
      <f3>RunPlugin(plugin://plugin.audio.pandoki/?rate=up)</f3>
      <f4>RunPlugin(plugin://plugin.audio.pandoki/?rate=tired)</f4>
      <f5>RunPlugin(plugin://plugin.audio.pandoki/?rate=down)</f5>
      <f6>RunPlugin(plugin://plugin.audio.pandoki/?rate=clear)</f6>
    </keyboard>
  </MyMusicPlaylist>
  <global>
    <keyboard>
      <f1>ActivateWindow(10500)</f1>
      <f2>ActivateWindow(10025,plugin://plugin.audio.pandoki/)</f2>
      <f3>ActivateWindow(10025,plugin://plugin.audio.pandoki/?play=1234)</f3>
    </keyboard>
  </global>
</keymap>

When on the Playlist F1-F6 will rate the currently PLAYING song accordingly.
Elsewhere F1 will go to playlist, F2 will go to station list, F3 will play station 1234.

Search kodi.log for "pandoki Play" and replace 1234 above with station id
Or use the full number from Pandora "Station details" url
Code:
example log:   NOTICE: plugin.audio.pandoki Play  OK 1234 'Some Station Radio'
example url:   http://www.pandora.com/station/1234567891233456789


Station Management: (context menu)
[Image: u5GT8EZ.jpg]


Code:
Profile Settings
   Account - You can have 3
   Username - Pandora Username (email address)
   Password - Pandora Password
   Pandora One - Enable if you have a Pandora One subscription

   Proxy (does not work in 'Stream Only' mode. See below)
      Global - Use OS / XBMC global proxy settings
      None - Ignore OS / XBMC global proxy settings
      Custom - Define proxy for Pandoki only
      SNI Support - Turn on if your proxy needs SNI (requires pyOpenSSL/ndg-httpsclient/pyasn1)

General Settings
   Sort Stations - Sort Station List by (newest/oldest/a-z)
   Audio Quality - Stream quality (high/med/low)
   Rating Mode - Basic/Expert (see above)

   Track Handling - If a song is found in the cache/library it will play from there instead of redownloading
      Stream Only - Uses no disk space. Plays direct from Pandora. (cannot skip ads, no proxy)
      Cache Only - Temporarily cache tracks
      Save Liked Tracks - Save tracks rated 3+ stars to Library folder (see below)
      Save All Tracks - Save all tracks tagged by MusicBrainz to Library folder
   Save Playlist - Save a StationName.m3u playlist of liked tracks to Library folder
   Skip Ads - Attempt to skip advertisements

Advanced Settings
   Playlist History - How many tracks to keep in the playlist
   Advert Size - Tracks smaller than this (kb) are considered adverts (Too high will skip valid tracks)
   Track Prefetch - How many seconds of song to download before playing (Too low will cut off first song)

Folder Settings
   Cache - Temporary directory for tracks so repeats are not redownloaded
   Library - Save tagged tracks to this directory. Add this folder to your XBMC Music Library!

Settings:
[Image: PNEBzmL.jpg]
(This post was last modified: 2016-09-03 02:18 by gominoa.)
find quote
kobyboy Offline
Senior Member
Posts: 119
Joined: Mar 2011
Reputation: 0
Post: #2
Thank you works great thus far!!!
find quote
phreaq Offline
Member
Posts: 63
Joined: Oct 2011
Reputation: 0
Post: #3
working for me too, thanks!
find quote
zachmorris Offline
Fan
Posts: 470
Joined: Mar 2008
Reputation: 33
Location: Bayside
Post: #4
I just wanted to say thanks. This is awesome!

It even works as a favorite widget in my eminence skin, being able to quickly go through my channels. If you were thinking of updating this at all, my only suggestion would be to pull fanart for the background of the channel or artist playing.
find quote
wpbpete Offline
Senior Member
Posts: 179
Joined: Feb 2013
Reputation: 2
Post: #5
Looks cool, there's no keyboard in Helix Alpha3

Works great in Gotham nice work...

It even supports Artist Slideshow very nice...

No more boring Pandora ui very very nice...

thanks Smile

oops... it stopped working after about 3 hours of enjoyment :/ it plays for a second and stops
(This post was last modified: 2014-10-03 18:43 by wpbpete.)
find quote
Eye in the sky Online
Fan
Posts: 392
Joined: Apr 2011
Reputation: 10
Location: Germany
Post: #6
Any chance you could add proxy support for users outside the U.S. ?
find quote
gominoa Offline
Member
Posts: 57
Joined: Oct 2014
Reputation: 11
Post: #7
(2014-10-03 15:13)wpbpete Wrote:  Looks cool, there's no keyboard in Helix Alpha3
You mean keyboard for user/pass? I see it in Helix Alpha4.

(2014-10-03 15:13)wpbpete Wrote:  oops... it stopped working after about 3 hours of enjoyment :/ it plays for a second and stops
I've had that happen twice, both times running it overnight and finding it in the morning stuck at song 60ish.
If you immediately back out and pick the station again does it resume playing?
I think it might be some kind of pandora limit.
find quote
scott967 Offline
Posting Freak
Posts: 2,720
Joined: Jul 2012
Reputation: 85
Post: #8
Thanks for this. Seems to work fine in both Gotham and Helix, using Aeon MQ5 on Gotham and artist slideshow and cu-lrc lyrics seem to work. Has everything I was using in the old json pandora addon so will probably use yours instead.

scott s.
.
find quote
wpbpete Offline
Senior Member
Posts: 179
Joined: Feb 2013
Reputation: 2
Post: #9
I'll have to install Alpha4 on my test box.

I tried going back in several times and nothing. Plays for a second and gone. Reinstalled it and still the same. It still downloads artist info and the it looks like it's playing something but no sound.

I'm happy to help you figure it out. Let me know what other info you need.
find quote
gominoa Offline
Member
Posts: 57
Joined: Oct 2014
Reputation: 11
Post: #10
Do they happen to be 00:42 second songs in the playlist? Also, are you getting ads? I got no ads until today, but I'm new to pandora so don't know how they do things.
find quote
wpbpete Offline
Senior Member
Posts: 179
Joined: Feb 2013
Reputation: 2
Post: #11
They are 00:42 seconds, no ads... I was going to mention that, then I noticed that it loops.
It sounds like you've already seen what I'm describing so I'm hopeful, here is a portion of the debug showing some errors

18:27:17 T:3548 ERROR: CCurlFile::FillBuffer - Failed: HTTP response code said error(22)
18:27:17 T:3548 NOTICE: CCurlFile::FillBuffer - Reconnect, (re)try 1
18:27:18 T:3548 ERROR: CCurlFile::FillBuffer - Failed: HTTP response code said error(22)
18:27:18 T:3548 ERROR: CCurlFile::CReadState::Connect, didn't get any data from stream.
18:27:18 T:3548 ERROR: XFILE::CFileCache::Open - failed to open source <http://mediaserver-sv5-rt-1.pandora.com/access/1062621863180663530.mp4?



8:27:20 T:5220 ERROR: dll_fgets emulated function failed
18:27:20 T:5220 ERROR: CCurlFile::Stat - Failed: HTTP response code said error(22) for http://mediaserver-sv5-rt-1.pandora.com/...3530.mp4/?

Alpha4 is working Smile
(This post was last modified: 2014-10-04 02:47 by wpbpete.)
find quote
gominoa Offline
Member
Posts: 57
Joined: Oct 2014
Reputation: 11
Post: #12
(2014-10-03 16:06)Eye in the sky Wrote:  Any chance you could add proxy support for users outside the U.S. ?
It appears to me that it will automatically use the global XBMC proxy settings if you fill them out (after a restart) at:
System->Settings->System->Internet Access

Are you wanting to use proxy for only Pandora?
(This post was last modified: 2014-10-04 02:59 by gominoa.)
find quote
Eye in the sky Online
Fan
Posts: 392
Joined: Apr 2011
Reputation: 10
Location: Germany
Post: #13
I would rather not use the global proxy settings.

The old Pandora Radio Script has build-in proxy support, but unfortunately this feature stopped working months ago.
(This post was last modified: 2014-10-04 13:21 by Eye in the sky.)
find quote
wpbpete Offline
Senior Member
Posts: 179
Joined: Feb 2013
Reputation: 2
Post: #14
The ads must've reset, it's playing perfectly again
find quote
gominoa Offline
Member
Posts: 57
Joined: Oct 2014
Reputation: 11
Post: #15
Updated to 0.2.1. Managed to play 150 songs in a row before it stopped due to typo (fixed).

It will now optionally save tracks to a folder that can be added to your music library. No tagging yet, but it saves them to 'userdata/addon_data/plugin.audio.pandoraslim/Pandora/' as 'Artist/Album/Title.strm'. I hope to add tagging so they integrate into the rest of the Music library.
(This post was last modified: 2014-10-07 20:32 by gominoa.)
find quote
Post Reply