XBMC Community Forum
[WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Announcements, Info, and General Discussion (/forumdisplay.php?fid=85)
+--- Forum: XBMC General Discussion (/forumdisplay.php?fid=6)
+--- Thread: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) (/showthread.php?tid=67012)



- tsint - 2011-10-09 13:42

Ri4h5ar88 Wrote:Do you have any plans to integrate spotify playlists?
What do you mean? You find your Spotify playlists under the normal XBMC Playlist folder.


- mullcom - 2011-10-09 20:41

28. Double-click the file named BuildSetup.bat
1. This is where actual software developers may have a dissenting opinion, saying that it is not necessary to run this after going through the previous steps. Again, I am including this because these are the “exact” steps I followed to successfully get Spotify working with XBMC.
29. Wait for the script to finish


I get this messege Confused
[Image: convert.php?dir=5075626c6963682f54454d50...mp;amp;v=0]

"I look in the folder and can not find a .exe file"


- Tompen - 2011-10-09 21:59

mullcom:

Run DownloadBuildDeps.bat in "path\to\xbmc\project\BuildDependencies"
(Avoid spaces in the path to the XBMC code directory. The batch file doesn't like them at the moment.)

Wait until the bat-file is complete

Run DownloadMingwBuildEnv.bat in "path\to\xbmc\project\BuildDependencies"

Wait until the bat-file is complete

Now you can run buildsetup again. Hopefully it will work better now


- Tompen - 2011-10-10 00:27

Ri4h5ar88 Wrote:Do you have any plans to integrate spotify playlists?

akezeke

In default.py for the addon, I noticed a todo note.
For me using windows, the following works.

Quote:def startPlugin():
[INDENT]if (__settings__.getSetting("enable") == "false"):[/INDENT]
[INDENT][INDENT]__settings__.openSettings()[/INDENT][/INDENT]
[INDENT][INDENT]xbmc.executebuiltin('XBMC.ReplaceWindow(home)')[/INDENT][/INDENT]
[INDENT]else:[/INDENT]
[INDENT][INDENT]xbmc.executebuiltin('XBMC.ReplaceWindow(musiclibrary,musicdb://)')[/INDENT][/INDENT]
[INDENT][INDENT]xbmc.executebuiltin('XBMC.Action(parentdir)')[/INDENT][/INDENT]

startPlugin()

Edit:note there is a typo, musiclibrary is one word, by mistake this forum adds a space character.


- akezeke - 2011-10-10 07:51

Tompen Wrote:akezeke

In default.py for the addon, I noticed a todo note.
For me using windows, the following works.



Edit:note there is a typo, musiclibrary is one word, by mistake this forum adds a space character.

Works!

Thank you


- mullcom - 2011-10-10 08:11

Tompen Wrote:mullcom:

Run DownloadBuildDeps.bat in "path\to\xbmc\project\BuildDependencies"
(Avoid spaces in the path to the XBMC code directory. The batch file doesn't like them at the moment.)

Wait until the bat-file is complete

Run DownloadMingwBuildEnv.bat in "path\to\xbmc\project\BuildDependencies"

Wait until the bat-file is complete

Now you can run buildsetup again. Hopefully it will work better now


oK..
thanks
I going to try this when i am home agen. will be back with result =D


- mullcom - 2011-10-10 19:24

great!!!! I have spotify in XBMC now

THX for good work boys


- dallasnights - 2011-10-10 19:39

No ATV love yet?


Spotify support in XBMC for iOS? - RockerC - 2011-10-12 16:46

I wonder if akezeke could get this to work on ATV2, iPad, and iPhone now that Spotify have released libspotify binaries for iOS

http://developer.spotify.com/blog/archives/2011/08/31/spotify-inside-your-ios-app/
Quote:Spotify inside your iOS app

Today we are announcing a great addition to the Spotify Platform. The Spotify Embedded Player libspotify 9 is now available for iOS.

We hope this will enable a new category of iPhone, iPad and iPod Touch applications with Spotify inside and allow for more immersive music experiences within iOS apps.

The documentation should help you understand what features are available and get your creativity going. Download libspotify 9 here. Samples to get you started are included. You may want to use the Objective-C wrapper available here. We also have a new FAQ that answers common questions and helps you avoid common mistakes.

Changes since the last release:
  • New: binaries for iOS devices
  • Change: login API - passwords must not be stored
  • New: sp_offline_time_left() - exposes time left before offline tracks will expire
  • Fixed: Logged in state now tells you when the user is in offline mode (logged in, but offline)
Please make sure to review the Terms of Use. If you want to use libspotify commercially please contact our Partner team.

We’ll also be hosting a tech meetup in New York on September 7th where we’ll be talking about this release and all things Spotify Platform and APIs so come and join us if you can.

Sten Garmark, Director of Platform
I also noticed that Spotify have released libspotify 9.1.x binaries for loads of other hardware platforms too now
http://developer.spotify.com/en/libspotify/overview/

Does this work with libspotify 9 already as it is? Confused

Time for all us to put some money together to donate an Apple TV 2 to akezeke?


Whatify??? - vurtual - 2011-10-14 14:13

I'm so sorry, I've had a reasonable look through some of the 60 or so pages here for help but I am stuck right from step 1.

I am running Dharma on Vista Home Premium. I've had a look at the instructions for Windows install, but I'm totally stuck on steps 1 and 3.

[INDENT]1: Obtain spotyXBMC2 source Use your favorite git tool to clone the repo: git://github.com/akezeke/spotyxbmc2.git
What is a git tool? And what is "clone the repo">

3: Build Follow a guide from XBMC.org and build it yourself, if you are not using the Win32BuildSetup util make sure that you copy libspotify.dll to your XBMC install location.
I'm not certain I understand a word of this! I think I need to find a guide somewhere on XBMC.org on how to build the installer file, but I've tried and I can't find it Sad[/INDENT]

I hope someone can help me, or at least point me in the right direction for help. I've even trawled through some of github's help but I just have no idea what I'm looking for.

On the flipside, I am good at simplifying complex instructions, perhaps I could try and construct a simple how to once I have understood it myself