• 1
  • 7
  • 8
  • 9(current)
  • 10
  • 11
  • 14
Release SoundCloud
I started to rewrite the plugin.

https://github.com/jaylinski/kodi-addon-soundcloud

It currently only implements a very basic search.
If I have enough time, I will try to re-implement all existing features and submit it to the Kodi repo (and replace the old broken plugin).
If anyone wants to contribute, feel free to open a pull request.
Reply
(2019-04-13, 13:58)jay.kody Wrote: I started to rewrite the plugin.

https://github.com/jaylinski/kodi-addon-soundcloud

It currently only implements a very basic search.
If I have enough time, I will try to re-implement all existing features and submit it to the Kodi repo (and replace the old broken plugin).
If anyone wants to contribute, feel free to open a pull request.
If you can pull this off, you will be my personal hero (:
Not a programmer here, otherwise I'd support...
Reply
(2019-04-13, 17:48)vogelmann Wrote:
(2019-04-13, 13:58)jay.kody Wrote: I started to rewrite the plugin.

https://github.com/jaylinski/kodi-addon-soundcloud

It currently only implements a very basic search.
If I have enough time, I will try to re-implement all existing features and submit it to the Kodi repo (and replace the old broken plugin).
If anyone wants to contribute, feel free to open a pull request.
If you can pull this off, you will be my personal hero (:
Not a programmer here, otherwise I'd support... 
Yeah, SoundCloud is a must, would be really (!!!) appreciated of you can handle this, good luck with that!!!
Btw: are there any prerequisites in order to use the current master of yours? I had no luck to install and use it on Kodi 17.6, stock SoundCloud was unistalled previously but still running Ukigumohs fork (needed to uninstall that first?).
Got any advice? Thx for your work!
Reply
Information 
Hi there,

I released an early alpha version (with a lot of known issues):
 
I only recommend installing this plugin if you know what you are doing. Here's an (somewhat complicated) instruction you can follow: https://forum.kodi.tv/showthread.php?tid...pid2711943
I tested/developed it on Kodi v18.1, but it should also work on v17.x. (It won't work with v16.x and below.)

@btotaku yes, you have to replace your existing "plugin.audio.soundcloud" folder.

Feedback is welcome (either here or via GitHub issue).
Reply
Thanks a Bunch!

Verry Cool! The Soundcloud Addon was one of my ofthen used Audio-Addons before it stoped working!, verry cool to see someone's working on it, to bring it (or at least some functionality) back.

(i had to unzip it first, and then put the Files in a Folder with the same Name as the zip File, then zip this Folder again. - Afther this, i was able to Install it, and as it looks so far, it works well!)

No pressure (and not shure if doable), but would be cool to have "Trending Audio" back. (Thows Tracks u see if u enter The Homepage).

Reg. and Thanks.
Reply
(2019-04-19, 18:10)jay.kody Wrote: Hi there,

I released an early alpha version (with a lot of known issues):
 
I only recommend installing this plugin if you know what you are doing. Here's an (somewhat complicated) instruction you can follow: https://forum.kodi.tv/showthread.php?tid...pid2711943
I tested/developed it on Kodi v18.1, but it should also work on v17.x. (It won't work with v16.x and below.)

@btotaku yes, you have to replace your existing "plugin.audio.soundcloud" folder.

Feedback is welcome (either here or via GitHub issue).    
Really nice, thx! for this Jay.Kodi. Unfortunately I can't get it running, here is what I tried so far (Running Kodi 17.6 on Windows 7 64-Bit):
Uninstalled all SoundCloud plugIns (offical and Ukigumoh's Fork) first.
1) Downloaded the alpha you linked and tried installing > got installation failed error within Kodi
2) Extracted the zip and put the contents in a folder named plugin.audio.soundcloud > zipped this filder into plugin.audio.soundcloud.zip > tried installing this .zip > got installation failed error within Kodi
3) Installed Ukigumohs fork successfully > renamed the folder from plugin.audio.soundcloud to plugin.audio.soundcloud-backup and copied over the extracted zip of the alpha into folder plugin.audio.soundcloud - restarted Kodi and executed SoundCloud > PlugIn crashes

Currently I don't have a clue what to try... of someone has a suggestion?
Essential questions are basically do I need to have some other SoundCloud PlugIn installed (stock or Ukigumohs fork)?
I can't really get the idea of this post as it is basically describing renaming of the original PlugIn folder (I assume stock SoundCloud), copying over the extracted folder of the new PlugIn (that is Ukigumohs fork) and starting Kodi (which is what I basically did with Ukigumohs Fork installed beeing "replaced" by your Alpha Jay.Kodi.

I attached the relevant section of my Kodi.log maybe anyone ca give me some advice.

20:22:07.687 T:3148   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'xbmcgui.ListItem' object has no attribute 'setIsFolder'
                                            Traceback (most recent call last):
                                              File "C:\Users\admin\AppData\Roaming\Kodi\addons\plugin.audio.soundcloud\addon.py", line 3, in <module>
                                                plugin.run()
                                              File "C:\Users\admin\AppData\Roaming\Kodi\addons\plugin.audio.soundcloud\resources\plugin.py", line 38, in run
                                                items = listItems.root()
                                              File "C:\Users\admin\AppData\Roaming\Kodi\addons\plugin.audio.soundcloud\resources\lib\kodi\items.py", line 21, in root
                                                list_item.setIsFolder(True)
                                            AttributeError: 'xbmcgui.ListItem' object has no attribute 'setIsFolder'
                                            -->End of Python script error report<--
20:22:07.755 T:2488   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.audio.soundcloud/
20:22:07.755 T:2488   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.soundcloud/) failed

Anyway, great to see someone dealing with SoundCloud, thumbs up!
Reply
(2019-04-22, 16:08)btotaku Wrote: Really nice, thx! for this Jay.Kodi. Unfortunately I can't get it running, here is what I tried so far (Running Kodi 17.6 on Windows 7 64-Bit):
Uninstalled all SoundCloud plugIns (offical and Ukigumoh's Fork) first.
1) Downloaded the alpha you linked and tried installing > got installation failed error within Kodi
2) Extracted the zip and put the contents in a folder named plugin.audio.soundcloud > zipped this filder into plugin.audio.soundcloud.zip > tried installing this .zip > got installation failed error within Kodi
3) Installed Ukigumohs fork successfully > renamed the folder from plugin.audio.soundcloud to plugin.audio.soundcloud-backup and copied over the extracted zip of the alpha into folder plugin.audio.soundcloud - restarted Kodi and executed SoundCloud > PlugIn crashes

Currently I don't have a clue what to try... of someone has a suggestion?
Essential questions are basically do I need to have some other SoundCloud PlugIn installed (stock or Ukigumohs fork)?
I can't really get the idea of this post as it is basically describing renaming of the original PlugIn folder (I assume stock SoundCloud), copying over the extracted folder of the new PlugIn (that is Ukigumohs fork) and starting Kodi (which is what I basically did with Ukigumohs Fork installed beeing "replaced" by your Alpha Jay.Kodi.

I attached the relevant section of my Kodi.log maybe anyone ca give me some advice.

20:22:07.687 T:3148   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'xbmcgui.ListItem' object has no attribute 'setIsFolder'
                                            Traceback (most recent call last):
                                              File "C:\Users\admin\AppData\Roaming\Kodi\addons\plugin.audio.soundcloud\addon.py", line 3, in <module>
                                                plugin.run()
                                              File "C:\Users\admin\AppData\Roaming\Kodi\addons\plugin.audio.soundcloud\resources\plugin.py", line 38, in run
                                                items = listItems.root()
                                              File "C:\Users\admin\AppData\Roaming\Kodi\addons\plugin.audio.soundcloud\resources\lib\kodi\items.py", line 21, in root
                                                list_item.setIsFolder(True)
                                            AttributeError: 'xbmcgui.ListItem' object has no attribute 'setIsFolder'
                                            -->End of Python script error report<--
20:22:07.755 T:2488   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.audio.soundcloud/
20:22:07.755 T:2488   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.soundcloud/) failed

Anyway, great to see someone dealing with SoundCloud, thumbs up! 

I published a new release: https://github.com/jaylinski/kodi-addon-....0-alpha.1 (This time the file should be zipped properly. @TP.One thx for the info!)
The error popped up because I used a function from the v18 API, which wasn't even needed. I tested it on Kodi v17 and it should work. But you should change the audio format from opus to mp3 in the settings, since it looks like Kodi v17 has some problems with opus.

@TP.One concerning your "trending audio" wish: do you mean the "Charts: New & hot" playlist? (https://soundcloud.com/discover/sets/cha...l-music:at)
(the one linked on the https://soundcloud.com/discover page?)
Adding this playlist is on my TODO list. Smile  Some of the playlists can already be found under "Discover" (it was called "Explore" in the previous plugin).
Reply
Hello

(2019-04-22, 22:09)jay.kody Wrote: @TP.One concerning your "trending audio" wish: do you mean the "Charts: New & hot" playlist? (https://soundcloud.com/discover/sets/cha...l-music:at)
(the one linked on the https://soundcloud.com/discover page?)

Not shure my guess is it was something different before.
What im Looking fore are the Tracks u can play right from the Homepage before logging in, or hit any Button or such. (On my End it looks somewhat like this: -> pict below)
Image

(Just with other Tracks, as this is just a pict from the www.)

Not 100% shure, but my guess is, this is what the old addon did show if u did go to "trending audio", could be wrong, but thows are the Tracks which would be cool to acces via addon.

Not shure if this helps but this was the old Addon path: plugin://plugin.audio.soundcloud/explore/trending/music/

And as long as i catch the right part within the different phyton Files, it was this definition:
pyton:

def get_trending(self, category='music', page=1):
if not category.lower() in ['music', 'audio']:
raise ProviderException('Unknown category "%s"' % category)

params = self._create_params(page)
response = self._request(self._create_url('app/mobileapps/suggestions/tracks/popular/%s' % category),
headers={'Accept': 'application/json'},
params=params)
self._handle_error(response)
return items.convert_to_items(response.json(), mobile_conversion=True)
(No guarantie i catch the right one!)
Reply
(2019-04-23, 01:00)TP.One Wrote: Hello
Not shure my guess is it was something different before.
What im Looking fore are the Tracks u can play right from the Homepage before logging in, or hit any Button or such. (On my End it looks somewhat like this: -> pict below)

(Just with other Tracks, as this is just a pict from the www.)

Not 100% shure, but my guess is, this is what the old addon did show if u did go to "trending audio", could be wrong, but thows are the Tracks which would be cool to acces via addon.

Not shure if this helps but this was the old Addon path: plugin://plugin.audio.soundcloud/explore/trending/music/

It seems the songs from the start-page are part of the "Top 50: All music genres" playlist (https://soundcloud.com/discover/sets/cha...l-music:at)
This playlist will be added (but it will be called "Charts: Top 50 > All music genres").

I'm using a different API, so I can't rebuild the original plugin 1:1.
Reply
(2019-04-23, 11:12)jay.kody Wrote: It seems the songs from the start-page are part of the "Top 50: All music genres" playlist (https://soundcloud.com/discover/sets/cha...l-music:at)
This playlist will be added (but it will be called "Charts: Top 50 > All music genres").
God catch! This comes actualy kinda close, as it includes some tracks from the Frontpage, did fail myself to finde the right path. Did even try to deconstruct the html/css via webdeveloper, but wasnt as easy as i hoped.

there would also be "https://soundcloud.com/charts/top" (which seems even a bit closer), or the path u provided without the country key at the end. (in this case without "at"), which seems to hold all tracks listed on the Frontpage from a quick comparsion, plus some additions. (without :at, theres much less german HipHop.)

how ever, already happy with "Top 50: All music genres", as this List, seems to include some tracks from the "frontpage"! :thumb:  :music.:


EDIT: Did have an other look at it, and it seems the Tracks on the Frontpage (www.soundcloud.com) are thows from "https://soundcloud.com/charts/top", just without the "preview Tracks".
Reply
(2019-04-22, 22:09)jay.kody Wrote: I published a new release: https://github.com/jaylinski/kodi-addon-....0-alpha.1 (This time the file should be zipped properly. @TP.One thx for the info!)
The error popped up because I used a function from the v18 API, which wasn't even needed. I tested it on Kodi v17 and it should work. But you should change the audio format from opus to mp3 in the settings, since it looks like Kodi v17 has some problems with opus.
Great Jay.Kody, now I got it installed without problems, works as described, thanks a lot for the fast feedback and help! ;-)
Reply
(2019-04-23, 14:30)TP.One Wrote: God catch! This comes actualy kinda close, as it includes some tracks from the Frontpage, did fail myself to finde the right path. Did even try to deconstruct the html/css via webdeveloper, but wasnt as easy as i hoped.

there would also be "https://soundcloud.com/charts/top" (which seems even a bit closer), or the path u provided without the country key at the end. (in this case without "at"), which seems to hold all tracks listed on the Frontpage from a quick comparsion, plus some additions. (without :at, theres much less german HipHop.)

how ever, already happy with "Top 50: All music genres", as this List, seems to include some tracks from the "frontpage"! :thumb:  :music.:


EDIT: Did have an other look at it, and it seems the Tracks on the Frontpage (www.soundcloud.com) are thows from "https://soundcloud.com/charts/top", just without the "preview Tracks". 
I published a new release: https://github.com/jaylinski/kodi-addon-....0-alpha.2
It contains the charts from the /discover page. @TP.One Does it work for you?
I took a look at the /charts page. It could also be implemented, but there is no API endpoint to fetch the categories... (I could hardcode them, but that's not ideal)

The ":at" suffix was caused by my austrian IP. The soundcloud API seems to automatically return the Discover playlists based on the requesting IP. So you get localized charts. (In contrast to the /charts page, which returns the global charts)
I'm thinking about adding a separate "Charts" folder, so users can get the global charts.
Reply
(2019-04-23, 21:13)jay.kody Wrote: I published a new release: https://github.com/jaylinski/kodi-addon-....0-alpha.2
It contains the charts from the /discover page. @TP.One Does it work for you?
Prtty Cool! Thanks for This! Works, and Contains also nice Tracks to discover.
 
(2019-04-23, 21:13)jay.kody Wrote: I took a look at the /charts page. It could also be implemented, but there is no API endpoint to fetch the categories... (I could hardcode them, but that's not ideal)
Did have a quick look at ur code (can just barely read Phyton), and i guess you use v2 there (was afraight soundcloud wouldnt come back in Kodi afther them shut down V1)

Jer, Charts would be cool for me. (simply cose im used to listen to thows tracks/playlist)

Regarding on the needed Endpoint for "Charts": May this (githublink) is helpful. (I knew, V2 its not realy well documented for (some?) reasons.)
Over on "stackoverflow" is also a Tread about Sondcloud API.
---

So, may i shuld start to explore the new Cathegories a bit...
 
(2019-04-23, 21:13)jay.kody Wrote: (I could hardcode them, but that's not ideal)
Just beacause of Interest: Does it acces faster with a proper Endpoint, or is this "just" to not have to link to a specivic path (which mostlikely change more ofthen then the API)?

 
(2019-04-23, 21:13)jay.kody Wrote: I'm thinking about adding a separate "Charts" folder, so users can get the global charts.
:thumb:
Reply
(2019-04-23, 22:33)TP.One Wrote: Jer, Charts would be cool for me. (simply cose im used to listen to thows tracks/playlist)

Regarding on the needed Endpoint for "Charts": May this (githublink) is helpful. (I knew, V2 its not realy well documented for (some?) reasons.)
Over on "stackoverflow" is also a Tread about Sondcloud API.
The link is helpful, but the listed endpoints for the chart categories don't work anymore...
 
(2019-04-23, 22:33)TP.One Wrote: Just because of Interest: Does it access faster with a proper Endpoint, or is this "just" to not have to link to a specific path (which mostlikely change more often then the API)?
It is faster with the proper endpoint: But the Explore/Discover response can be cached.
Reply
Update
I released the first beta version:
Notable changes:
  • Added search history
  • Fixed issue with geo-blocked tracks
  • Improved performance in "Discover" folders by caching the API response

I will start the plugin submission process soon, but it could take a while. (There are a lot of things to consider: https://kodi.wiki/view/Submitting_Add-ons)
Feedback is welcome (either here or via GitHub issue).
Reply
  • 1
  • 7
  • 8
  • 9(current)
  • 10
  • 11
  • 14

Logout Mark Read Team Forum Stats Members Help
SoundCloud1