Kodi Community Forum
Release Mixcloud plugin - 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 Mixcloud plugin (/showthread.php?tid=116386)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


RE: Mixcloud plugin - jackyNIX - 2020-02-24

(2020-02-22, 22:09)understatement Wrote:
(2020-02-18, 17:36)jackyNIX Wrote: the cloudcasts that don't work, are select EXCLUSIVES. Sad
So we need to filter them out...

Can you tell whether a user that has access to these can still play them from the Kodi plug-in when logged in? I haven't signed up for any Select subscriptions yet as it is unclear to me whether the content creators actually receive a meaningful portion of that fee.  
I found a way around it. Laugh

The url to the stream is only available to you when you have a subscription. The local resolver finds it and the stream will work as normal.
If you don't have a subscription, the url is left out, the local resolver will not work.
But... the mixcloud-downloader resolver still works. They've found a way around it.

Our plugin checks the url and the 'exclusive' attribute. When needed, it switches automatically to the mixcloud-downloader resolver and you will get your stream afterall.

Version 2.4.3 is available now.


RE: Mixcloud plugin - jackyNIX - 2020-03-15

Already running Kodi Matrix?
The mixcloud plugin is also available in the official repo from within Kodi Matrix! Smile


RE: Mixcloud plugin - ziploker - 2020-03-30

(2020-03-15, 18:11)jackyNIX Wrote: Already running Kodi Matrix?
The mixcloud plugin is also available in the official repo from within Kodi Matrix! Smile

hi thank you for maintaining this plugin btw.
im getting a kodi error when i click on a track.  - playack failed. one or more items failed to play. check log etc....


2020-03-30 03:28:30.451 T:140104379336448 NOTICE: MIXCLOUD Unable to resolve: HTTP Error 429:
2020-03-30 03:28:30.451 T:140104379336448 NOTICE: MIXCLOUD Resolving offliberty cloudcast stream for https://www.mixcloud.com/TerryVernixx/opulence-023-guest-mix-kick-radio-uk/
2020-03-30 03:28:34.786 T:140104379336448 NOTICE: MIXCLOUD Wrong response try=1 code=200 len=209, trying again...
2020-03-30 03:28:34.787 T:140104379336448 NOTICE: MIXCLOUD Resolving mixcloud-downloader cloudcast stream for https://www.mixcloud.com/TerryVernixx/opulence-023-guest-mix-kick-radio-uk/
2020-03-30 03:28:34.787 T:140104379336448 NOTICE: MIXCLOUD Link version 2
2020-03-30 03:28:50.606 T:140104379336448 NOTICE: MIXCLOUD Unable to resolve: HTTP Error 429:
2020-03-30 03:28:50.606 T:140104379336448 NOTICE: MIXCLOUD Locally resolving cloudcast stream for https://www.mixcloud.com/TerryVernixx/opulence-023-guest-mix-kick-radio-uk/
2020-03-30 03:28:52.679 T:140104379336448 NOTICE: MIXCLOUD Unable to resolve: Extra data: line 1 column 1486 - line 1 column 192900 (char 1485 - 192899)
2020-03-30 03:28:52.679 T:140104379336448 NOTICE: MIXCLOUD Resolving mixcloud-downloader cloudcast stream for https://www.mixcloud.com/TerryVernixx/opulence-023-guest-mix-kick-radio-uk/
2020-03-30 03:28:52.679 T:140104379336448 NOTICE: MIXCLOUD Link version 1
2020-03-30 03:29:08.455 T:140104379336448 NOTICE: MIXCLOUD Unable to resolve: HTTP Error 429:
2020-03-30 03:29:08.456 T:140104379336448 NOTICE: MIXCLOUD Resolving offliberty cloudcast stream for https://www.mixcloud.com/TerryVernixx/opulence-023-guest-mix-kick-radio-uk/
2020-03-30 03:29:12.797 T:140104379336448 NOTICE: MIXCLOUD Wrong response try=1 code=200 len=209, trying again...
2020-03-30 03:29:12.797 T:140104379336448 NOTICE: MIXCLOUD Resolving mixcloud-downloader cloudcast stream for https://www.mixcloud.com/TerryVernixx/opulence-023-guest-mix-kick-radio-uk/
2020-03-30 03:29:12.797 T:140104379336448 NOTICE: MIXCLOUD Link version 2
2020-03-30 03:29:28.523 T:140104379336448 NOTICE: MIXCLOUD Unable to resolve: HTTP Error 429:
2020-03-30 03:29:28.523 T:140104379336448 NOTICE: MIXCLOUD Locally resolving cloudcast stream for https://www.mixcloud.com/TerryVernixx/opulence-023-guest-mix-kick-radio-uk/
2020-03-30 03:29:30.485 T:140104379336448 NOTICE: MIXCLOUD Unable to resolve: Extra data: line 1 column 1487 - line 1 column 193097 (char 1486 - 193096)
2020-03-30 03:29:30.485 T:140104379336448 NOTICE: MIXCLOUD Resolving mixcloud-downloader cloudcast stream for https://www.mixcloud.com/TerryVernixx/opulence-023-guest-mix-kick-radio-uk/
2020-03-30 03:29:30.485 T:140104379336448 NOTICE: MIXCLOUD Link version 1



ive tried copy and pasting the url into firfox and it opens, i can click play and it plays in the browser.

ive tried changing the resolver from auto to offliberty and mixcloud-downloader1 and 2 but same results.

ive looked up http return error 429, too many requests but it works in the browser tho when i copy/paste

ive tried logging out, and logging back in, when i do log in i can see all the folders "your following" "your favorites" etc...

any clue what it could be?

thanks again
-ziploker


RE: Mixcloud plugin - ziploker - 2020-03-30

...forgot to mention im running kodi 18.6 (leia) and mixcloud 2.4.3 from kodi repo.


RE: Mixcloud plugin - ziploker - 2020-04-01

it looks like the audio links are generated from javascript in the mixcoud page instead of links in the html source. Also, the audio is fragmented as m4s files when in the network tab. So i guess even though the mixcloud api allows us to search and see all the tracks, there's no way to play the files from kodi Sad


RE: Mixcloud plugin - jackyNIX - 2020-04-07

(2020-03-30, 09:41)ziploker Wrote: ive looked up http return error 429, too many requests but it works in the browser tho when i copy/paste

Just checked, and it works fine now.


RE: Mixcloud plugin - jackyNIX - 2020-04-07

(2020-04-01, 17:09)ziploker Wrote: it looks like the audio links are generated from javascript in the mixcoud page instead of links in the html source. Also, the audio is fragmented as m4s files when in the network tab. So i guess even though the mixcloud api allows us to search and see all the tracks, there's no way to play the files from kodi Sad

That's correct. Mixcloud api doesn't give you the direct streams. It's Mixcloud policy.


RE: Mixcloud plugin - ziploker - 2020-04-13

(2020-04-07, 19:22)jackyNIX Wrote:
(2020-04-01, 17:09)ziploker Wrote: it looks like the audio links are generated from javascript in the mixcoud page instead of links in the html source. Also, the audio is fragmented as m4s files when in the network tab. So i guess even though the mixcloud api allows us to search and see all the tracks, there's no way to play the files from kodi Sad

That's correct. Mixcloud api doesn't give you the direct streams. It's Mixcloud policy. 
thank you, its working for me too Smile


RE: Mixcloud plugin - cmr_bmcx - 2020-04-22

Dear all,

First post so I hope this is in order. I like Kodi although don't use it an awful lot. I am however a Mixcloud fan and select subscriber.

I hate the mixcloud app though.

Does this addon allow me to do the following:

1) Know what streams I have listened to and/or remember my progress through a stream?
2) Allow mix to listen to my select subscribe mixes.

I am planning to use Kodi alot more for music so I shall be sticking around.

Thanks to the author for the plugin.


RE: Mixcloud plugin - jackyNIX - 2020-04-24

(2020-04-22, 18:56)cmr_bmcx Wrote: Dear all,

First post so I hope this is in order. I like Kodi although don't use it an awful lot. I am however a Mixcloud fan and select subscriber.

I hate the mixcloud app though.

Does this addon allow me to do the following:

1) Know what streams I have listened to and/or remember my progress through a stream?
2) Allow mix to listen to my select subscribe mixes.

I am planning to use Kodi alot more for music so I shall be sticking around.

Thanks to the author for the plugin.

As a developer, I can only work with the functionality provided by Mixcloud through their api. And that api is rather limited. For instance: direct streaming from Mixcloud is NOT provided.
Some creativity gets us a bit further, but not everything is possible.

1) You can find 2 lists in the kodi plugin: your history of streams you listened to using the kodi plugin (History - Played Cloudcasts) and your history using mixcloud webpage and their official app (Your Listens). The first is always available, for the latter you need to log in.
Both lists are strictly separated. Why? Mixcloud does not know what streams you listen to in Kodi (the streams are downloaded somewhere else).

Note: From plugin version 3 on (Matrix only), those 2 lists are merged for convenience.

Remembering progress in a stream is simply not possible.

2) The select streams 'should' be accessible (last time I tested, it worked). But as Mixcloud evolves more and more into a paying service, I suspect they will make it harder to listen to those streams in the future.


RE: Mixcloud plugin - Moore2890 - 2020-04-28

(2020-04-24, 23:38)jackyNIX Wrote:
(2020-04-22, 18:56)cmr_bmcx Wrote: Dear all,

First post so I hope this is in order. I like Kodi although don't use it an awful lot. I am however a Mixcloud fan and select subscriber.

I hate the mixcloud app though.

Does this addon allow me to do the following:

1) Know what streams I have listened to and/or remember my progress through a stream?
2) Allow mix to listen to my select subscribe mixes.

I am planning to use Kodi alot more for music so I shall be sticking around.

Thanks to the author for the plugin.

As a developer, I can only work with the functionality provided by Mixcloud through their api. And that api is rather limited. For instance: direct streaming from Mixcloud is NOT provided.
Some creativity gets us a bit further, but not everything is possible.

1) You can find 2 lists in the kodi plugin: your history of streams you listened to using the kodi plugin (History - Played Cloudcasts) and your history using mixcloud webpage and their official app (Your Listens). The first is always available, for the latter you need to log in.
Both lists are strictly separated. Why? Mixcloud does not know what streams you listen to in Kodi (the streams are downloaded somewhere else).

Note: From plugin version 3 on (Matrix only), those 2 lists are merged for convenience.

Remembering progress in a stream is simply not possible.

2) The select streams 'should' be accessible (last time I tested, it worked). But as Mixcloud evolves more and more into a paying service, I suspect they will make it harder to listen to those streams in the future.


Hi,

I have the latest Kodi and have the latest Mixcloud.
I have entered my Authentication code and I have my login.

I have done all what has been talked about in the previous messages here.

Am I missing something or have I misinterpreted what has been said as people have stated it's working for them whilst others are saying you can't direct stream Mixcloud to Kodi but there are 'creative' ways around it.

Well can anyone actually who knows what they are talking about tell me in simple terms as I'm not a tech geek but have common knowledge..

Can Mixcloud be played/streamed through Kodi??

Because I dont understand why there is an addon available if it doesn't work??


RE: Mixcloud plugin - jackyNIX - 2020-04-28

(2020-04-28, 15:54)Moore2890 Wrote:
(2020-04-24, 23:38)jackyNIX Wrote:
(2020-04-22, 18:56)cmr_bmcx Wrote: Dear all,

First post so I hope this is in order. I like Kodi although don't use it an awful lot. I am however a Mixcloud fan and select subscriber.

I hate the mixcloud app though.

Does this addon allow me to do the following:

1) Know what streams I have listened to and/or remember my progress through a stream?
2) Allow mix to listen to my select subscribe mixes.

I am planning to use Kodi alot more for music so I shall be sticking around.

Thanks to the author for the plugin.

As a developer, I can only work with the functionality provided by Mixcloud through their api. And that api is rather limited. For instance: direct streaming from Mixcloud is NOT provided.
Some creativity gets us a bit further, but not everything is possible.

1) You can find 2 lists in the kodi plugin: your history of streams you listened to using the kodi plugin (History - Played Cloudcasts) and your history using mixcloud webpage and their official app (Your Listens). The first is always available, for the latter you need to log in.
Both lists are strictly separated. Why? Mixcloud does not know what streams you listen to in Kodi (the streams are downloaded somewhere else).

Note: From plugin version 3 on (Matrix only), those 2 lists are merged for convenience.

Remembering progress in a stream is simply not possible.

2) The select streams 'should' be accessible (last time I tested, it worked). But as Mixcloud evolves more and more into a paying service, I suspect they will make it harder to listen to those streams in the future. 


Hi,

I have the latest Kodi and have the latest Mixcloud.
I have entered my Authentication code and I have my login.

I have done all what has been talked about in the previous messages here.

Am I missing something or have I misinterpreted what has been said as people have stated it's working for them whilst others are saying you can't direct stream Mixcloud to Kodi but there are 'creative' ways around it.

Well can anyone actually who knows what they are talking about tell me in simple terms as I'm not a tech geek but have common knowledge..

Can Mixcloud be played/streamed through Kodi??

Because I dont understand why there is an addon available if it doesn't work?? 
Mixcloud just works. Select a cloudcast and listen.
You don't even need to be logged in to listen to mixcloud. You only need to log in if you want your profile info (like favorites etc...)

For more info: read the first post of this forum thread.


RE: Mixcloud plugin - understatement - 2020-05-26

Hi @jackyNIX, even with your new code, I still have problems starting streams from within the plugin. However, with some inspiration from @Tolriq's code, I was able to simplify stream resolution and off-load parsing to youtube-dl's Mixcloud handler. There's probably more to be done with respect to error handling and packaging, but this seems to be working well enough. I hope it helps!

python:
from __future__ import unicode_literals
from youtube_dl import YoutubeDL # pip install youtube_dl

# - snip - #

def get_stream_local(cloudcast_key):

    ck=URL_MIXCLOUD[:-1]+cloudcast_key
    log_if_debug('ck: ' + ck)

    ydl_opts = {
                'format': 'best',
                'no_color': 'true',
                'outtmpl': '%(id)s%(ext)s',
                'quiet': 'true'
               }

    try:
        ydl = YoutubeDL(ydl_opts)
        stream = ydl.extract_info(ck, download=False)
    except Exception as e:
        log_if_debug("youtube-dl failure: %s " % e)
        return

    if 'url' in stream:
        log_if_debug(ck + ' resolved to ' + stream['url'] + ' with youtube-dl')
        return stream['url']



RE: Mixcloud plugin - understatement - 2020-05-29

Added some error handling as I was sometimes getting 403 or 404 responses. If there is a way to edit posts on this forum, can someone show me how? I can't seem to find it...

python:
from __future__ import unicode_literals
from youtube_dl import YoutubeDL # pip install youtube_dl

# - snip - #

def get_stream_local(cloudcast_key):

    ck=URL_MIXCLOUD[:-1]+cloudcast_key
    log_if_debug('ck: ' + ck)

    ydl_opts = {
                'format': 'best',
                'no_color': 'true',
                'outtmpl': '%(id)s%(ext)s',
                'quiet': 'true'
               }

    try:
        ydl = YoutubeDL(ydl_opts)
        stream = ydl.extract_info(ck, download=False)
    except Exception as e:
        log_if_debug("youtube-dl failure: %s " % e)
        return

   if 'url' in stream:
        url = stream['url']
        log_if_debug(ck + ' resolved to ' + url + ' with youtube-dl')

        response = urllib2.urlopen(url)

        mime = str(response.info().gettype())
        log_if_debug(url + ' is type: ' + mime)

        if 'audio' in mime:
            log_if_debug('playing ' + url)
            return url



RE: Mixcloud plugin - jackyNIX - 2020-09-24

I released a new version to address some issues with broken resolvers. Only the offliberty resolver is still working, all others are deactivated (including local resolver).

You can download the plugin now from my github: The update has also been pushed to the official Kodi repo.

@understatement : Interesting approach you posted. I might look into that...