• 1
  • 2
  • 3(current)
  • 4
  • 5
  • 13
Release Mixcloud plugin
#31
(2013-03-07, 22:07)si macc Wrote: Hey guys, great add-on, by far my favorite music add-on. Is it possible in the future to add the ability to login and access 'follows' and 'favorties', or is this not possible?

Keep up the good work.

Well, Bochi made a version that does just that. But the login procedure is a real pain in the ***. You need to open a browser, go to a certain url showing an image with a code and then you have to enter that code to log in. And repeat that procedure each and every time you log in. No way to automate that. Sad

Add to that this plugin is a bit on the gray side using download streams from outside of the mixcloud api...
jackyNIX on Soundcloud, Mixcloud and Facebook
Reply
#32
Is this plugin still maintained? It appears it stopped working correctly with XBMC 12.2
Reply
#33
Hi all,

seems that offliberty resolving is a bit unreliable and needs some retries now to deliver a result. Also off54.php seems to be the better choice instead of off.php. Quickly hacked the get_stream function to get around the current problems. Works fine for me. Anyone knows what's the difference between off54.php and off.php?

Code:
def get_stream(cloudcast_key):
    ck="http://www.mixcloud.com"+cloudcast_key
    if debugenabled:
        print('MIXCLOUD '+'resolving cloudcast stream for '+ck)
    for retry in range(1, 10):
        request = urllib2.Request('http://offliberty.com/off54.php', 'track=%s' % ck)
        request.add_header('Referer', 'http://offliberty.com/')
        response = urllib2.urlopen(request)
        data = response.read()
        if len(data)>100:
            break
        elif debugenabled:
            print('MIXCLOUD '+'length of result is too short. Retrying %s. time!' % retry)
    match = re.search('HREF="(.*)" class="download"', data)
    return match.group(1)
Reply
#34
Worked like a charm for ages. I'll look into this problem later today and try to find a solution.

Anyways, thanks for supporting and using this plugin Smile
jackyNIX on Soundcloud, Mixcloud and Facebook
Reply
#35
(2014-03-12, 14:32)stiefenm Wrote: Hi all,

seems that offliberty resolving is a bit unreliable and needs some retries now to deliver a result. Also off54.php seems to be the better choice instead of off.php. Quickly hacked the get_stream function to get around the current problems. Works fine for me. Anyone knows what's the difference between off54.php and off.php?

Code:
def get_stream(cloudcast_key):
    ck="http://www.mixcloud.com"+cloudcast_key
    if debugenabled:
        print('MIXCLOUD '+'resolving cloudcast stream for '+ck)
    for retry in range(1, 10):
        request = urllib2.Request('http://offliberty.com/off54.php', 'track=%s' % ck)
        request.add_header('Referer', 'http://offliberty.com/')
        response = urllib2.urlopen(request)
        data = response.read()
        if len(data)>100:
            break
        elif debugenabled:
            print('MIXCLOUD '+'length of result is too short. Retrying %s. time!' % retry)
    match = re.search('HREF="(.*)" class="download"', data)
    return match.group(1)

This is correct and very useable as a workaround for now.

"Retry" is a good idea to implement in the plugin, and maybe have the amount of retries editable in the config window while I'm at it.
Gonna look further (timeout etc...) and make a fix to put in the repository.
jackyNIX on Soundcloud, Mixcloud and Facebook
Reply
#36
Fixed the offliberty url and commited.
You can grab it through Github (see OP) or just wait to get it updated through xbmc repository.
jackyNIX on Soundcloud, Mixcloud and Facebook
Reply
#37
Question 
EDIT: Works fine again - maybe a temporary problem with offliberty.

Hi,

Great Add-on - thank you!

I got a "little" problem:
When I select a track - a completely other track is played. Sad
I have tried five tracks - same result with all of them.

Example:
I want to play this track: http://www.mixcloud.com/CarlCox/carl-cox-global-574/
In your Add-on I select "Search" -> "Users..." -> "CarlCox" -> "first Item" -> "Carl Cox - Global 574"
1st try - xbmc.log says: http://stream17.mixcloud.com/c/originals...d2e300.mp3
2nd try - xbmc.log says: http://stream16.mixcloud.com/c/m4a/64/6/...475089.m4a

This is the right URL (via offliberty.com): http://stream17.mixcloud.com/c/originals...0e61d8.mp3

Can you imagine the reason for this?

I'm using a Raspberry Pi + Raspbmc.
Add-on Version: 1.1.1
Reply
#38
Mixcloud loads now but it's not pulling in the correct links. All of my saved stations are playing something different when I load them. I tried to start over and do a search from scratch and it still plays something different from what is selected. I see that the person from the previous post is having the same problem.
Reply
#39
See this pull request:
https://github.com/jackyNIX/xbmc-mixclou...ll/1/files

To fix incorrect track playback, edit default.py file with those changes or download the whole file here and replace it in installation.
Reply
#40
Hi
Is the Op going to upgrade the MixCloud Plugin for XBMC I'm using an android box with Linux Frodo 12.3
Reply
#41
I am using Raspberry Pi and Raspbmc so I have no idea how to edit the default.Py file. I can't even find it. It would be easier to do an upgrade of the plugin so I can just download it again from the Add-Ons. Can the developer please do that? I'm missing all my music.
Reply
#42
Ok guys this is how I fixed the issue.

1. Download the MixCloud repo http://forum.xbmc.org/showthread.php?tid=116386
2. The file will be a ZIP archive. Open it with WinRar. LEAVE THIS OPEN UNTIL YOU HAVE COMPLETED THE STEPS BELOW
3. Inside the file locate the default.py file and drag this file to the desktop.
4. Open Notepad on your Computer and drag the default.py file which is on your desktop into the opened Notepad screen.
5. You will notice that there is a lot of txt, You must delete all the txt that you see. DO NOT DELETE THIS FILE JUST LEAVE IT BLANK AND OPEN
6. Goto this page https://raw.githubusercontent.com/Silent...default.py and copy all the txt that you see on the page.
7. You now need to paste the txt into the default.py file Which you have on your desktop. Before closing this file you must click Save.
8. You now need to replace the file which is in the WINRAR file. So drag the one from the desktop and replace it.
9. You now need to add this file to an sd card or USB stick and put it into your device.
10. I uninstalled the broken MixCloud plugin from XBMC. I then went into XBMC into System, Then Adons,and selected Install from zip file. A window will pop up asking you to locate the file. For me it was Root filesystem. Scroll down and select media your SD card or USB stick must already be mounted locate the MixCloud Repo and install it.

I am by no means a computer expert but it worked for me, and everything is now working again.
Reply
#43
Added a local resolver in v1.1.3, bypassing offliberty (but still an option, if you want to).
Thanks to SilentException!
jackyNIX on Soundcloud, Mixcloud and Facebook
Reply
#44
Will version 1.1.3 be added to the xbmc repository? If so, when? It is easier to update from there than using the Github method. Thank you.
Reply
#45
(2014-05-01, 10:19)judgement1 Wrote: Will version 1.1.3 be added to the xbmc repository? If so, when? It is easier to update from there than using the Github method. Thank you.

The pull request is done, so it should be there one of these days.
jackyNIX on Soundcloud, Mixcloud and Facebook
Reply
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 13

Logout Mark Read Team Forum Stats Members Help
Mixcloud plugin1