Kodi Community Forum
[RELEASE] Rdio Music Addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=148)
+---- Thread: [RELEASE] Rdio Music Addon (/showthread.php?tid=133714)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28


RE: [RELEASE] Rdio Music Addon - danmarwas - 2012-08-09

Hi,

You can't paste it anywhere.

Here the full code: http://pastebin.com/Htwvz7xz


Basically, replace:

Code:
def resolve_playback_url(self, key):
    svc = RemotingService(self._AMF_ENDPOINT)
    rdio_svc = svc.getService('rdio')

For:

Code:
def resolve_playback_url(self, key):
    svc = RemotingService(self._AMF_ENDPOINT)
    svc.addHTTPHeader('Cookie', 'r=YOUR-R-COOKIE-VALUE')
    svc.addHTTPHeader('Host', 'www.rdio.com')
    rdio_svc = svc.getService('rdio')

When programming Python, indentation is important.

Please, make a copy of you rdioxbmc.py file if you try to modify it but you are not sure what are you doing. If you are not sure, maybe you would like to wait a new version if this hack works for everyone.

Regards.




RE: [RELEASE] Rdio Music Addon - ampedandwired - 2012-08-09

@danmarwas - you are a genius! Thanks for the tip!

I'll give this a whirl tonight and if it's all good will try to push a patch immediately.



RE: [RELEASE] Rdio Music Addon - ampedandwired - 2012-08-09

It works! I've released a new version 1.3.4 with the fix. Let me know how you go with it.

A billion thanks to danmarwas for finding the problem - you're a legend!



RE: [RELEASE] Rdio Music Addon - dkplayaclub - 2012-08-09

OK. I installed the new version and now I can't log in. It tells me password is incorrect, but I've double and triple checked and it should be right in settings. Any idea what might cause this?


RE: [RELEASE] Rdio Music Addon - Varming - 2012-08-09

(2012-08-09, 13:15)ampedandwired Wrote: It works! I've released a new version 1.3.4 with the fix. Let me know how you go with it.

Works here too - also the tracks that gave me that error earlier! Thanks a lot for this fix!!


RE: [RELEASE] Rdio Music Addon - kobyboy - 2012-08-09

Woot just wonderfull !! Thanks guys works great!!


RE: [RELEASE] Rdio Music Addon - ampedandwired - 2012-08-10

@dkplayaclub, could you post a debug log? Make sure you set the logging level to "debug" in the system configuration first.


RE: [RELEASE] Rdio Music Addon - dkplayaclub - 2012-08-10

OK. I think this is what you're looking for.

http://pastebin.com/PbXBDXNh

If that's not it, let me know. Im still new to this. I am able to log in through mozilla, just not in XBMC.


RE: [RELEASE] Rdio Music Addon - dallasnights - 2012-08-10

Here is my log http://www.xbmclogs.com/show.php?id=6364
Can not launch on ATV2 errors out immediately after clicking
Please help if you can

Thanks for the hard work


RE: [RELEASE] Rdio Music Addon - ampedandwired - 2012-08-10

@dkplayaclub - thanks, that's exactly what I was looking for.

Unfortunately it doesn't tell me anything except that Rdio thinks your password is incorrect (The text "password is incorrect" is lifted directly from the Rdio login page), which we know isn't the case as you've already quadruple checked it Sad

Not too sure where to go with this one, but here are a couple of suggestions to start with:
  • Quintuple check your password. Verify it directly in the Rdio config file by having a look at the contents of this file: <xbmc_home>/userdata/addon_data/plugin.audio.rdio/settings.xml
  • Do you have any punctuation in your password? If so, perhaps try changing your Rdio password so that it only has letters and numbers, then change it in the Rdio XBMC settings and try again. Underscores or dashes should be OK, but stay away from any other punctuation, especially spaces, ampersands, greater/less than and single/double quotes.

Let me know how you go.



RE: [RELEASE] Rdio Music Addon - ampedandwired - 2012-08-10

@dallasnights, that's an odd one. Seems like a completely unrelated xbmc addon is causing Rdio to fail somehow. All I can suggest is that you open this file in a text editor:
/var/mobile/Library/Preferences/XBMC/addons/script.module.protobuf/lib/google/__init__.py

And check to see if there are any spaces before the "__import__" statement. If so remove them. The file should have only a single line hard up against the left margin:

__import__('pkg_resources').declare_namespace(__name__)



RE: [RELEASE] Rdio Music Addon - dkplayaclub - 2012-08-10

(2012-08-10, 04:56)ampedandwired Wrote: @dkplayaclub - thanks, that's exactly what I was looking for.

Unfortunately it doesn't tell me anything except that Rdio thinks your password is incorrect (The text "password is incorrect" is lifted directly from the Rdio login page), which we know isn't the case as you've already quadruple checked it Sad

Not too sure where to go with this one, but here are a couple of suggestions to start with:
  • Quintuple check your password. Verify it directly in the Rdio config file by having a look at the contents of this file: <xbmc_home>/userdata/addon_data/plugin.audio.rdio/settings.xml
  • Do you have any punctuation in your password? If so, perhaps try changing your Rdio password so that it only has letters and numbers, then change it in the Rdio XBMC settings and try again. Underscores or dashes should be OK, but stay away from any other punctuation, especially spaces, ampersands, greater/less than and single/double quotes.

Let me know how you go.

Checked, double checked and tried till my eyes bled. Nothing doing....
Created a new Rdio account and put that info into the setings.xml file and it works. I guess it just didn't like my account. Weird
Now plays great. Best audio addon for XBMC. Please never stop supporting this!!


RE: [RELEASE] Rdio Music Addon - ampedandwired - 2012-08-10

That's bizarre. I assume you were able to log into the normal Rdio website with the same (old) credentials OK? Glad you got it working anyway, and glad you enjoy the addon!


RE: [RELEASE] Rdio Music Addon - dallasnights - 2012-08-11

you are a genius working great on ATV2 again, it was the Google Music Addon I was trying to get to work wierd

Thanks and keep up the great work!


RE: [RELEASE] Rdio Music Addon - ampedandwired - 2012-08-12

Brilliant, happy its working for again for you!